| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ApplyGuestMemoryFix(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, virtualaddress: u64, fixbuffer: *const ::core::ffi::c_void, fixbuffersize: u32) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ApplyGuestMemoryFix ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , virtualaddress : u64 , fixbuffer : *const ::core::ffi::c_void , fixbuffersize : u32 ) -> :: windows::core::HRESULT ); |
| ApplyGuestMemoryFix(vmsavedstatedumphandle, vpid, virtualaddress, fixbuffer, fixbuffersize).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ApplyPendingSavedStateFileReplayLog<P0>(vmrsfile: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ApplyPendingSavedStateFileReplayLog ( vmrsfile : :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); |
| ApplyPendingSavedStateFileReplayLog(vmrsfile.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn CallStackUnwind(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, imageinfo: *const MODULE_INFO, imageinfocount: u32, framecount: u32, callstack: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn CallStackUnwind ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , imageinfo : *const MODULE_INFO , imageinfocount : u32 , framecount : u32 , callstack : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); |
| CallStackUnwind(vmsavedstatedumphandle, vpid, imageinfo, imageinfocount, framecount, callstack).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn FindSavedStateSymbolFieldInType<P0, P1>(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, typename: P0, fieldname: P1, offset: *mut u32, found: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn FindSavedStateSymbolFieldInType ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , typename : :: windows::core::PCSTR , fieldname : :: windows::core::PCWSTR , offset : *mut u32 , found : *mut super::super::Foundation:: BOOL ) -> :: windows::core::HRESULT ); |
| FindSavedStateSymbolFieldInType(vmsavedstatedumphandle, vpid, typename.into_param().abi(), fieldname.into_param().abi(), offset, found).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ForceActiveVirtualTrustLevel(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, virtualtrustlevel: u8) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ForceActiveVirtualTrustLevel ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , virtualtrustlevel : u8 ) -> :: windows::core::HRESULT ); |
| ForceActiveVirtualTrustLevel(vmsavedstatedumphandle, vpid, virtualtrustlevel).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ForceArchitecture(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, architecture: VIRTUAL_PROCESSOR_ARCH) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ForceArchitecture ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , architecture : VIRTUAL_PROCESSOR_ARCH ) -> :: windows::core::HRESULT ); |
| ForceArchitecture(vmsavedstatedumphandle, vpid, architecture).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn ForceNestedHostMode<P0>(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, hostmode: P0, oldmode: ::core::option::Option<*mut super::super::Foundation::BOOL>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ForceNestedHostMode ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , hostmode : super::super::Foundation:: BOOL , oldmode : *mut super::super::Foundation:: BOOL ) -> :: windows::core::HRESULT ); |
| ForceNestedHostMode(vmsavedstatedumphandle, vpid, hostmode.into_param().abi(), ::core::mem::transmute(oldmode.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ForcePagingMode(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, pagingmode: PAGING_MODE) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ForcePagingMode ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , pagingmode : PAGING_MODE ) -> :: windows::core::HRESULT ); |
| ForcePagingMode(vmsavedstatedumphandle, vpid, pagingmode).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetActiveVirtualTrustLevel(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, virtualtrustlevel: *mut u8) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetActiveVirtualTrustLevel ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , virtualtrustlevel : *mut u8 ) -> :: windows::core::HRESULT ); |
| GetActiveVirtualTrustLevel(vmsavedstatedumphandle, vpid, virtualtrustlevel).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetArchitecture(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, architecture: *mut VIRTUAL_PROCESSOR_ARCH) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetArchitecture ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , architecture : *mut VIRTUAL_PROCESSOR_ARCH ) -> :: windows::core::HRESULT ); |
| GetArchitecture(vmsavedstatedumphandle, vpid, architecture).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetEnabledVirtualTrustLevels(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, virtualtrustlevels: *mut u32) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetEnabledVirtualTrustLevels ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , virtualtrustlevels : *mut u32 ) -> :: windows::core::HRESULT ); |
| GetEnabledVirtualTrustLevels(vmsavedstatedumphandle, vpid, virtualtrustlevels).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetGuestEnabledVirtualTrustLevels(vmsavedstatedumphandle: *mut ::core::ffi::c_void, virtualtrustlevels: *mut u32) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetGuestEnabledVirtualTrustLevels ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , virtualtrustlevels : *mut u32 ) -> :: windows::core::HRESULT ); |
| GetGuestEnabledVirtualTrustLevels(vmsavedstatedumphandle, virtualtrustlevels).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetGuestOsInfo(vmsavedstatedumphandle: *mut ::core::ffi::c_void, virtualtrustlevel: u8, guestosinfo: *mut GUEST_OS_INFO) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetGuestOsInfo ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , virtualtrustlevel : u8 , guestosinfo : *mut GUEST_OS_INFO ) -> :: windows::core::HRESULT ); |
| GetGuestOsInfo(vmsavedstatedumphandle, virtualtrustlevel, guestosinfo).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetGuestPhysicalMemoryChunks(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memorychunkpagesize: *mut u64, memorychunks: *mut GPA_MEMORY_CHUNK, memorychunkcount: *mut u64) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetGuestPhysicalMemoryChunks ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , memorychunkpagesize : *mut u64 , memorychunks : *mut GPA_MEMORY_CHUNK , memorychunkcount : *mut u64 ) -> :: windows::core::HRESULT ); |
| GetGuestPhysicalMemoryChunks(vmsavedstatedumphandle, memorychunkpagesize, memorychunks, memorychunkcount).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetGuestRawSavedMemorySize(vmsavedstatedumphandle: *mut ::core::ffi::c_void, guestrawsavedmemorysize: *mut u64) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetGuestRawSavedMemorySize ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , guestrawsavedmemorysize : *mut u64 ) -> :: windows::core::HRESULT ); |
| GetGuestRawSavedMemorySize(vmsavedstatedumphandle, guestrawsavedmemorysize).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memoryblockcachelimit: *mut u64) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetMemoryBlockCacheLimit ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , memoryblockcachelimit : *mut u64 ) -> :: windows::core::HRESULT ); |
| GetMemoryBlockCacheLimit(vmsavedstatedumphandle, memoryblockcachelimit).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn GetNestedVirtualizationMode(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, enabled: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetNestedVirtualizationMode ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , enabled : *mut super::super::Foundation:: BOOL ) -> :: windows::core::HRESULT ); |
| GetNestedVirtualizationMode(vmsavedstatedumphandle, vpid, enabled).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetPagingMode(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, pagingmode: *mut PAGING_MODE) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetPagingMode ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , pagingmode : *mut PAGING_MODE ) -> :: windows::core::HRESULT ); |
| GetPagingMode(vmsavedstatedumphandle, vpid, pagingmode).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetRegisterValue(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, registerid: u32, registervalue: *mut VIRTUAL_PROCESSOR_REGISTER) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetRegisterValue ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , registerid : u32 , registervalue : *mut VIRTUAL_PROCESSOR_REGISTER ) -> :: windows::core::HRESULT ); |
| GetRegisterValue(vmsavedstatedumphandle, vpid, registerid, registervalue).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetSavedStateSymbolFieldInfo<P0>(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, typename: P0, typefieldinfomap: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetSavedStateSymbolFieldInfo ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , typename : :: windows::core::PCSTR , typefieldinfomap : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); |
| GetSavedStateSymbolFieldInfo(vmsavedstatedumphandle, vpid, typename.into_param().abi(), typefieldinfomap).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn GetSavedStateSymbolProviderHandle(vmsavedstatedumphandle: *mut ::core::ffi::c_void) -> super::super::Foundation::HANDLE { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetSavedStateSymbolProviderHandle ( vmsavedstatedumphandle : *mut ::core::ffi::c_void ) -> super::super::Foundation:: HANDLE ); |
| GetSavedStateSymbolProviderHandle(vmsavedstatedumphandle) |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetSavedStateSymbolTypeSize<P0>(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, typename: P0, size: *mut u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetSavedStateSymbolTypeSize ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , typename : :: windows::core::PCSTR , size : *mut u32 ) -> :: windows::core::HRESULT ); |
| GetSavedStateSymbolTypeSize(vmsavedstatedumphandle, vpid, typename.into_param().abi(), size).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GetVpCount(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpcount: *mut u32) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GetVpCount ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpcount : *mut u32 ) -> :: windows::core::HRESULT ); |
| GetVpCount(vmsavedstatedumphandle, vpcount).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GuestPhysicalAddressToRawSavedMemoryOffset(vmsavedstatedumphandle: *mut ::core::ffi::c_void, physicaladdress: u64, rawsavedmemoryoffset: *mut u64) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GuestPhysicalAddressToRawSavedMemoryOffset ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , physicaladdress : u64 , rawsavedmemoryoffset : *mut u64 ) -> :: windows::core::HRESULT ); |
| GuestPhysicalAddressToRawSavedMemoryOffset(vmsavedstatedumphandle, physicaladdress, rawsavedmemoryoffset).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn GuestVirtualAddressToPhysicalAddress(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, virtualaddress: u64, physicaladdress: *mut u64, unmappedregionsize: ::core::option::Option<*mut u64>) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn GuestVirtualAddressToPhysicalAddress ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , virtualaddress : u64 , physicaladdress : *mut u64 , unmappedregionsize : *mut u64 ) -> :: windows::core::HRESULT ); |
| GuestVirtualAddressToPhysicalAddress(vmsavedstatedumphandle, vpid, virtualaddress, physicaladdress, ::core::mem::transmute(unmappedregionsize.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn HdvCreateDeviceInstance(devicehosthandle: *const ::core::ffi::c_void, devicetype: HDV_DEVICE_TYPE, deviceclassid: *const ::windows::core::GUID, deviceinstanceid: *const ::windows::core::GUID, deviceinterface: *const ::core::ffi::c_void, devicecontext: ::core::option::Option<*const ::core::ffi::c_void>, devicehandle: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvCreateDeviceInstance ( devicehosthandle : *const ::core::ffi::c_void , devicetype : HDV_DEVICE_TYPE , deviceclassid : *const :: windows::core::GUID , deviceinstanceid : *const :: windows::core::GUID , deviceinterface : *const ::core::ffi::c_void , devicecontext : *const ::core::ffi::c_void , devicehandle : *mut *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| HdvCreateDeviceInstance(devicehosthandle, devicetype, deviceclassid, deviceinstanceid, deviceinterface, ::core::mem::transmute(devicecontext.unwrap_or(::std::ptr::null())), devicehandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn HdvCreateGuestMemoryAperture<P0>(requestor: *const ::core::ffi::c_void, guestphysicaladdress: u64, bytecount: u32, writeprotected: P0, mappedaddress: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvCreateGuestMemoryAperture ( requestor : *const ::core::ffi::c_void , guestphysicaladdress : u64 , bytecount : u32 , writeprotected : super::super::Foundation:: BOOL , mappedaddress : *mut *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| HdvCreateGuestMemoryAperture(requestor, guestphysicaladdress, bytecount, writeprotected.into_param().abi(), mappedaddress).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn HdvCreateSectionBackedMmioRange<P0>(requestor: *const ::core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, offsetinpages: u64, lengthinpages: u64, mappingflags: HDV_MMIO_MAPPING_FLAGS, sectionhandle: P0, sectionoffsetinpages: u64) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvCreateSectionBackedMmioRange ( requestor : *const ::core::ffi::c_void , barindex : HDV_PCI_BAR_SELECTOR , offsetinpages : u64 , lengthinpages : u64 , mappingflags : HDV_MMIO_MAPPING_FLAGS , sectionhandle : super::super::Foundation:: HANDLE , sectionoffsetinpages : u64 ) -> :: windows::core::HRESULT ); |
| HdvCreateSectionBackedMmioRange(requestor, barindex, offsetinpages, lengthinpages, mappingflags, sectionhandle.into_param().abi(), sectionoffsetinpages).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn HdvDeliverGuestInterrupt(requestor: *const ::core::ffi::c_void, msiaddress: u64, msidata: u32) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvDeliverGuestInterrupt ( requestor : *const ::core::ffi::c_void , msiaddress : u64 , msidata : u32 ) -> :: windows::core::HRESULT ); |
| HdvDeliverGuestInterrupt(requestor, msiaddress, msidata).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn HdvDestroyGuestMemoryAperture(requestor: *const ::core::ffi::c_void, mappedaddress: *const ::core::ffi::c_void) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvDestroyGuestMemoryAperture ( requestor : *const ::core::ffi::c_void , mappedaddress : *const ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| HdvDestroyGuestMemoryAperture(requestor, mappedaddress).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn HdvDestroySectionBackedMmioRange(requestor: *const ::core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, offsetinpages: u64) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvDestroySectionBackedMmioRange ( requestor : *const ::core::ffi::c_void , barindex : HDV_PCI_BAR_SELECTOR , offsetinpages : u64 ) -> :: windows::core::HRESULT ); |
| HdvDestroySectionBackedMmioRange(requestor, barindex, offsetinpages).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_System_HostComputeSystem\"`*"] |
| #[cfg(feature = "Win32_System_HostComputeSystem")] |
| #[inline] |
| pub unsafe fn HdvInitializeDeviceHost<P0>(computesystem: P0, devicehosthandle: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::HostComputeSystem::HCS_SYSTEM>, |
| { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvInitializeDeviceHost ( computesystem : super::HostComputeSystem:: HCS_SYSTEM , devicehosthandle : *mut *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| HdvInitializeDeviceHost(computesystem.into_param().abi(), devicehosthandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn HdvReadGuestMemory(requestor: *const ::core::ffi::c_void, guestphysicaladdress: u64, buffer: &mut [u8]) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvReadGuestMemory ( requestor : *const ::core::ffi::c_void , guestphysicaladdress : u64 , bytecount : u32 , buffer : *mut u8 ) -> :: windows::core::HRESULT ); |
| HdvReadGuestMemory(requestor, guestphysicaladdress, buffer.len() as _, ::core::mem::transmute(buffer.as_ptr())).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn HdvRegisterDoorbell<P0>(requestor: *const ::core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, baroffset: u64, triggervalue: u64, flags: u64, doorbellevent: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvRegisterDoorbell ( requestor : *const ::core::ffi::c_void , barindex : HDV_PCI_BAR_SELECTOR , baroffset : u64 , triggervalue : u64 , flags : u64 , doorbellevent : super::super::Foundation:: HANDLE ) -> :: windows::core::HRESULT ); |
| HdvRegisterDoorbell(requestor, barindex, baroffset, triggervalue, flags, doorbellevent.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn HdvTeardownDeviceHost(devicehosthandle: *const ::core::ffi::c_void) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvTeardownDeviceHost ( devicehosthandle : *const ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| HdvTeardownDeviceHost(devicehosthandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn HdvUnregisterDoorbell(requestor: *const ::core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, baroffset: u64, triggervalue: u64, flags: u64) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvUnregisterDoorbell ( requestor : *const ::core::ffi::c_void , barindex : HDV_PCI_BAR_SELECTOR , baroffset : u64 , triggervalue : u64 , flags : u64 ) -> :: windows::core::HRESULT ); |
| HdvUnregisterDoorbell(requestor, barindex, baroffset, triggervalue, flags).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn HdvWriteGuestMemory(requestor: *const ::core::ffi::c_void, guestphysicaladdress: u64, buffer: &[u8]) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmdevicehost.dll""system" fn HdvWriteGuestMemory ( requestor : *const ::core::ffi::c_void , guestphysicaladdress : u64 , bytecount : u32 , buffer : *const u8 ) -> :: windows::core::HRESULT ); |
| HdvWriteGuestMemory(requestor, guestphysicaladdress, buffer.len() as _, ::core::mem::transmute(buffer.as_ptr())).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn InKernelSpace(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, inkernelspace: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn InKernelSpace ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , inkernelspace : *mut super::super::Foundation:: BOOL ) -> :: windows::core::HRESULT ); |
| InKernelSpace(vmsavedstatedumphandle, vpid, inkernelspace).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, activevirtualtrustlevelenabled: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn IsActiveVirtualTrustLevelEnabled ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , activevirtualtrustlevelenabled : *mut super::super::Foundation:: BOOL ) -> :: windows::core::HRESULT ); |
| IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle, vpid, activevirtualtrustlevelenabled).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn IsNestedVirtualizationEnabled(vmsavedstatedumphandle: *mut ::core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn IsNestedVirtualizationEnabled ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , enabled : *mut super::super::Foundation:: BOOL ) -> :: windows::core::HRESULT ); |
| IsNestedVirtualizationEnabled(vmsavedstatedumphandle, enabled).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn LoadSavedStateFile<P0>(vmrsfile: P0, vmsavedstatedumphandle: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn LoadSavedStateFile ( vmrsfile : :: windows::core::PCWSTR , vmsavedstatedumphandle : *mut *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| LoadSavedStateFile(vmrsfile.into_param().abi(), vmsavedstatedumphandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn LoadSavedStateFiles<P0, P1>(binfile: P0, vsvfile: P1, vmsavedstatedumphandle: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn LoadSavedStateFiles ( binfile : :: windows::core::PCWSTR , vsvfile : :: windows::core::PCWSTR , vmsavedstatedumphandle : *mut *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| LoadSavedStateFiles(binfile.into_param().abi(), vsvfile.into_param().abi(), vmsavedstatedumphandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn LoadSavedStateModuleSymbols<P0, P1>(vmsavedstatedumphandle: *mut ::core::ffi::c_void, imagename: P0, modulename: P1, baseaddress: u64, sizeofbase: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn LoadSavedStateModuleSymbols ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , imagename : :: windows::core::PCSTR , modulename : :: windows::core::PCSTR , baseaddress : u64 , sizeofbase : u32 ) -> :: windows::core::HRESULT ); |
| LoadSavedStateModuleSymbols(vmsavedstatedumphandle, imagename.into_param().abi(), modulename.into_param().abi(), baseaddress, sizeofbase).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn LoadSavedStateModuleSymbolsEx<P0, P1>(vmsavedstatedumphandle: *mut ::core::ffi::c_void, imagename: P0, imagetimestamp: u32, modulename: P1, baseaddress: u64, sizeofbase: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn LoadSavedStateModuleSymbolsEx ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , imagename : :: windows::core::PCSTR , imagetimestamp : u32 , modulename : :: windows::core::PCSTR , baseaddress : u64 , sizeofbase : u32 ) -> :: windows::core::HRESULT ); |
| LoadSavedStateModuleSymbolsEx(vmsavedstatedumphandle, imagename.into_param().abi(), imagetimestamp, modulename.into_param().abi(), baseaddress, sizeofbase).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn LoadSavedStateSymbolProvider<P0, P1>(vmsavedstatedumphandle: *mut ::core::ffi::c_void, usersymbols: P0, force: P1) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn LoadSavedStateSymbolProvider ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , usersymbols : :: windows::core::PCWSTR , force : super::super::Foundation:: BOOL ) -> :: windows::core::HRESULT ); |
| LoadSavedStateSymbolProvider(vmsavedstatedumphandle, usersymbols.into_param().abi(), force.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn LocateSavedStateFiles<P0, P1>(vmname: P0, snapshotname: P1, binpath: *mut ::windows::core::PWSTR, vsvpath: *mut ::windows::core::PWSTR, vmrspath: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn LocateSavedStateFiles ( vmname : :: windows::core::PCWSTR , snapshotname : :: windows::core::PCWSTR , binpath : *mut :: windows::core::PWSTR , vsvpath : *mut :: windows::core::PWSTR , vmrspath : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); |
| LocateSavedStateFiles(vmname.into_param().abi(), snapshotname.into_param().abi(), binpath, vsvpath, vmrspath).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ReadGuestPhysicalAddress(vmsavedstatedumphandle: *mut ::core::ffi::c_void, physicaladdress: u64, buffer: *mut ::core::ffi::c_void, buffersize: u32, bytesread: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ReadGuestPhysicalAddress ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , physicaladdress : u64 , buffer : *mut ::core::ffi::c_void , buffersize : u32 , bytesread : *mut u32 ) -> :: windows::core::HRESULT ); |
| ReadGuestPhysicalAddress(vmsavedstatedumphandle, physicaladdress, buffer, buffersize, ::core::mem::transmute(bytesread.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ReadGuestRawSavedMemory(vmsavedstatedumphandle: *mut ::core::ffi::c_void, rawsavedmemoryoffset: u64, buffer: *mut ::core::ffi::c_void, buffersize: u32, bytesread: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ReadGuestRawSavedMemory ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , rawsavedmemoryoffset : u64 , buffer : *mut ::core::ffi::c_void , buffersize : u32 , bytesread : *mut u32 ) -> :: windows::core::HRESULT ); |
| ReadGuestRawSavedMemory(vmsavedstatedumphandle, rawsavedmemoryoffset, buffer, buffersize, ::core::mem::transmute(bytesread.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ReadSavedStateGlobalVariable<P0>(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, globalname: P0, buffer: *mut ::core::ffi::c_void, buffersize: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ReadSavedStateGlobalVariable ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , globalname : :: windows::core::PCSTR , buffer : *mut ::core::ffi::c_void , buffersize : u32 ) -> :: windows::core::HRESULT ); |
| ReadSavedStateGlobalVariable(vmsavedstatedumphandle, vpid, globalname.into_param().abi(), buffer, buffersize).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ReleaseSavedStateFiles(vmsavedstatedumphandle: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ReleaseSavedStateFiles ( vmsavedstatedumphandle : *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| ReleaseSavedStateFiles(vmsavedstatedumphandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ReleaseSavedStateSymbolProvider(vmsavedstatedumphandle: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ReleaseSavedStateSymbolProvider ( vmsavedstatedumphandle : *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| ReleaseSavedStateSymbolProvider(vmsavedstatedumphandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn ResolveSavedStateGlobalVariableAddress<P0>(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, globalname: P0, virtualaddress: *mut u64, size: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ResolveSavedStateGlobalVariableAddress ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , globalname : :: windows::core::PCSTR , virtualaddress : *mut u64 , size : *mut u32 ) -> :: windows::core::HRESULT ); |
| ResolveSavedStateGlobalVariableAddress(vmsavedstatedumphandle, vpid, globalname.into_param().abi(), virtualaddress, ::core::mem::transmute(size.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn ScanMemoryForDosImages(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, startaddress: u64, endaddress: u64, callbackcontext: *mut ::core::ffi::c_void, foundimagecallback: FOUND_IMAGE_CALLBACK, standaloneaddress: *const u64, standaloneaddresscount: u32) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn ScanMemoryForDosImages ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , vpid : u32 , startaddress : u64 , endaddress : u64 , callbackcontext : *mut ::core::ffi::c_void , foundimagecallback : FOUND_IMAGE_CALLBACK , standaloneaddress : *const u64 , standaloneaddresscount : u32 ) -> :: windows::core::HRESULT ); |
| ScanMemoryForDosImages(vmsavedstatedumphandle, vpid, startaddress, endaddress, callbackcontext, foundimagecallback, standaloneaddress, standaloneaddresscount).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn SetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memoryblockcachelimit: u64) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn SetMemoryBlockCacheLimit ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , memoryblockcachelimit : u64 ) -> :: windows::core::HRESULT ); |
| SetMemoryBlockCacheLimit(vmsavedstatedumphandle, memoryblockcachelimit).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle: *mut ::core::ffi::c_void, callback: GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "vmsavedstatedumpprovider.dll""system" fn SetSavedStateSymbolProviderDebugInfoCallback ( vmsavedstatedumphandle : *mut ::core::ffi::c_void , callback : GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK ) -> :: windows::core::HRESULT ); |
| SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle, callback).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WHvAcceptPartitionMigration<P0>(migrationhandle: P0) -> ::windows::core::Result<WHV_PARTITION_HANDLE> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvAcceptPartitionMigration ( migrationhandle : super::super::Foundation:: HANDLE , partition : *mut WHV_PARTITION_HANDLE ) -> :: windows::core::HRESULT ); |
| let mut result__ = ::windows::core::zeroed::<WHV_PARTITION_HANDLE>(); |
| WHvAcceptPartitionMigration(migrationhandle.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvAdviseGpaRange<P0>(partition: P0, gparanges: &[WHV_MEMORY_RANGE_ENTRY], advice: WHV_ADVISE_GPA_RANGE_CODE, advicebuffer: *const ::core::ffi::c_void, advicebuffersizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvAdviseGpaRange ( partition : WHV_PARTITION_HANDLE , gparanges : *const WHV_MEMORY_RANGE_ENTRY , gparangescount : u32 , advice : WHV_ADVISE_GPA_RANGE_CODE , advicebuffer : *const ::core::ffi::c_void , advicebuffersizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvAdviseGpaRange(partition.into_param().abi(), ::core::mem::transmute(gparanges.as_ptr()), gparanges.len() as _, advice, advicebuffer, advicebuffersizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WHvAllocateVpciResource(providerid: ::core::option::Option<*const ::windows::core::GUID>, flags: WHV_ALLOCATE_VPCI_RESOURCE_FLAGS, resourcedescriptor: ::core::option::Option<&[u8]>) -> ::windows::core::Result<super::super::Foundation::HANDLE> { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvAllocateVpciResource ( providerid : *const :: windows::core::GUID , flags : WHV_ALLOCATE_VPCI_RESOURCE_FLAGS , resourcedescriptor : *const ::core::ffi::c_void , resourcedescriptorsizeinbytes : u32 , vpciresource : *mut super::super::Foundation:: HANDLE ) -> :: windows::core::HRESULT ); |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::HANDLE>(); |
| WHvAllocateVpciResource(::core::mem::transmute(providerid.unwrap_or(::std::ptr::null())), flags, ::core::mem::transmute(resourcedescriptor.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), resourcedescriptor.as_deref().map_or(0, |slice| slice.len() as _), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvCancelPartitionMigration<P0>(partition: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvCancelPartitionMigration ( partition : WHV_PARTITION_HANDLE ) -> :: windows::core::HRESULT ); |
| WHvCancelPartitionMigration(partition.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvCancelRunVirtualProcessor<P0>(partition: P0, vpindex: u32, flags: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvCancelRunVirtualProcessor ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , flags : u32 ) -> :: windows::core::HRESULT ); |
| WHvCancelRunVirtualProcessor(partition.into_param().abi(), vpindex, flags).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvCompletePartitionMigration<P0>(partition: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvCompletePartitionMigration ( partition : WHV_PARTITION_HANDLE ) -> :: windows::core::HRESULT ); |
| WHvCompletePartitionMigration(partition.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WHvCreateNotificationPort<P0, P1>(partition: P0, parameters: *const WHV_NOTIFICATION_PORT_PARAMETERS, eventhandle: P1, porthandle: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvCreateNotificationPort ( partition : WHV_PARTITION_HANDLE , parameters : *const WHV_NOTIFICATION_PORT_PARAMETERS , eventhandle : super::super::Foundation:: HANDLE , porthandle : *mut *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| WHvCreateNotificationPort(partition.into_param().abi(), parameters, eventhandle.into_param().abi(), porthandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvCreatePartition() -> ::windows::core::Result<WHV_PARTITION_HANDLE> { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvCreatePartition ( partition : *mut WHV_PARTITION_HANDLE ) -> :: windows::core::HRESULT ); |
| let mut result__ = ::windows::core::zeroed::<WHV_PARTITION_HANDLE>(); |
| WHvCreatePartition(&mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WHvCreateTrigger<P0>(partition: P0, parameters: *const WHV_TRIGGER_PARAMETERS, triggerhandle: *mut *mut ::core::ffi::c_void, eventhandle: *mut super::super::Foundation::HANDLE) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvCreateTrigger ( partition : WHV_PARTITION_HANDLE , parameters : *const WHV_TRIGGER_PARAMETERS , triggerhandle : *mut *mut ::core::ffi::c_void , eventhandle : *mut super::super::Foundation:: HANDLE ) -> :: windows::core::HRESULT ); |
| WHvCreateTrigger(partition.into_param().abi(), parameters, triggerhandle, eventhandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvCreateVirtualProcessor<P0>(partition: P0, vpindex: u32, flags: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvCreateVirtualProcessor ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , flags : u32 ) -> :: windows::core::HRESULT ); |
| WHvCreateVirtualProcessor(partition.into_param().abi(), vpindex, flags).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvCreateVirtualProcessor2<P0>(partition: P0, vpindex: u32, properties: &[WHV_VIRTUAL_PROCESSOR_PROPERTY]) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvCreateVirtualProcessor2 ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , properties : *const WHV_VIRTUAL_PROCESSOR_PROPERTY , propertycount : u32 ) -> :: windows::core::HRESULT ); |
| WHvCreateVirtualProcessor2(partition.into_param().abi(), vpindex, ::core::mem::transmute(properties.as_ptr()), properties.len() as _).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WHvCreateVpciDevice<P0, P1, P2>(partition: P0, logicaldeviceid: u64, vpciresource: P1, flags: WHV_CREATE_VPCI_DEVICE_FLAGS, notificationeventhandle: P2) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| P2: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvCreateVpciDevice ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , vpciresource : super::super::Foundation:: HANDLE , flags : WHV_CREATE_VPCI_DEVICE_FLAGS , notificationeventhandle : super::super::Foundation:: HANDLE ) -> :: windows::core::HRESULT ); |
| WHvCreateVpciDevice(partition.into_param().abi(), logicaldeviceid, vpciresource.into_param().abi(), flags, notificationeventhandle.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvDeleteNotificationPort<P0>(partition: P0, porthandle: *const ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvDeleteNotificationPort ( partition : WHV_PARTITION_HANDLE , porthandle : *const ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| WHvDeleteNotificationPort(partition.into_param().abi(), porthandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvDeletePartition<P0>(partition: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvDeletePartition ( partition : WHV_PARTITION_HANDLE ) -> :: windows::core::HRESULT ); |
| WHvDeletePartition(partition.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvDeleteTrigger<P0>(partition: P0, triggerhandle: *const ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvDeleteTrigger ( partition : WHV_PARTITION_HANDLE , triggerhandle : *const ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| WHvDeleteTrigger(partition.into_param().abi(), triggerhandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvDeleteVirtualProcessor<P0>(partition: P0, vpindex: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvDeleteVirtualProcessor ( partition : WHV_PARTITION_HANDLE , vpindex : u32 ) -> :: windows::core::HRESULT ); |
| WHvDeleteVirtualProcessor(partition.into_param().abi(), vpindex).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvDeleteVpciDevice<P0>(partition: P0, logicaldeviceid: u64) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvDeleteVpciDevice ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 ) -> :: windows::core::HRESULT ); |
| WHvDeleteVpciDevice(partition.into_param().abi(), logicaldeviceid).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvEmulatorCreateEmulator(callbacks: *const WHV_EMULATOR_CALLBACKS, emulator: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "winhvemulation.dll""system" fn WHvEmulatorCreateEmulator ( callbacks : *const WHV_EMULATOR_CALLBACKS , emulator : *mut *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| WHvEmulatorCreateEmulator(callbacks, emulator).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvEmulatorDestroyEmulator(emulator: *const ::core::ffi::c_void) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "winhvemulation.dll""system" fn WHvEmulatorDestroyEmulator ( emulator : *const ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| WHvEmulatorDestroyEmulator(emulator).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvEmulatorTryIoEmulation(emulator: *const ::core::ffi::c_void, context: *const ::core::ffi::c_void, vpcontext: *const WHV_VP_EXIT_CONTEXT, ioinstructioncontext: *const WHV_X64_IO_PORT_ACCESS_CONTEXT) -> ::windows::core::Result<WHV_EMULATOR_STATUS> { |
| ::windows::imp::link ! ( "winhvemulation.dll""system" fn WHvEmulatorTryIoEmulation ( emulator : *const ::core::ffi::c_void , context : *const ::core::ffi::c_void , vpcontext : *const WHV_VP_EXIT_CONTEXT , ioinstructioncontext : *const WHV_X64_IO_PORT_ACCESS_CONTEXT , emulatorreturnstatus : *mut WHV_EMULATOR_STATUS ) -> :: windows::core::HRESULT ); |
| let mut result__ = ::windows::core::zeroed::<WHV_EMULATOR_STATUS>(); |
| WHvEmulatorTryIoEmulation(emulator, context, vpcontext, ioinstructioncontext, &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvEmulatorTryMmioEmulation(emulator: *const ::core::ffi::c_void, context: *const ::core::ffi::c_void, vpcontext: *const WHV_VP_EXIT_CONTEXT, mmioinstructioncontext: *const WHV_MEMORY_ACCESS_CONTEXT) -> ::windows::core::Result<WHV_EMULATOR_STATUS> { |
| ::windows::imp::link ! ( "winhvemulation.dll""system" fn WHvEmulatorTryMmioEmulation ( emulator : *const ::core::ffi::c_void , context : *const ::core::ffi::c_void , vpcontext : *const WHV_VP_EXIT_CONTEXT , mmioinstructioncontext : *const WHV_MEMORY_ACCESS_CONTEXT , emulatorreturnstatus : *mut WHV_EMULATOR_STATUS ) -> :: windows::core::HRESULT ); |
| let mut result__ = ::windows::core::zeroed::<WHV_EMULATOR_STATUS>(); |
| WHvEmulatorTryMmioEmulation(emulator, context, vpcontext, mmioinstructioncontext, &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetCapability(capabilitycode: WHV_CAPABILITY_CODE, capabilitybuffer: *mut ::core::ffi::c_void, capabilitybuffersizeinbytes: u32, writtensizeinbytes: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetCapability ( capabilitycode : WHV_CAPABILITY_CODE , capabilitybuffer : *mut ::core::ffi::c_void , capabilitybuffersizeinbytes : u32 , writtensizeinbytes : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetCapability(capabilitycode, capabilitybuffer, capabilitybuffersizeinbytes, ::core::mem::transmute(writtensizeinbytes.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetInterruptTargetVpSet<P0>(partition: P0, destination: u64, destinationmode: WHV_INTERRUPT_DESTINATION_MODE, targetvps: &mut [u32], targetvpcount: *mut u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetInterruptTargetVpSet ( partition : WHV_PARTITION_HANDLE , destination : u64 , destinationmode : WHV_INTERRUPT_DESTINATION_MODE , targetvps : *mut u32 , vpcount : u32 , targetvpcount : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetInterruptTargetVpSet(partition.into_param().abi(), destination, destinationmode, ::core::mem::transmute(targetvps.as_ptr()), targetvps.len() as _, targetvpcount).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetPartitionCounters<P0>(partition: P0, counterset: WHV_PARTITION_COUNTER_SET, buffer: *mut ::core::ffi::c_void, buffersizeinbytes: u32, byteswritten: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetPartitionCounters ( partition : WHV_PARTITION_HANDLE , counterset : WHV_PARTITION_COUNTER_SET , buffer : *mut ::core::ffi::c_void , buffersizeinbytes : u32 , byteswritten : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetPartitionCounters(partition.into_param().abi(), counterset, buffer, buffersizeinbytes, ::core::mem::transmute(byteswritten.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetPartitionProperty<P0>(partition: P0, propertycode: WHV_PARTITION_PROPERTY_CODE, propertybuffer: *mut ::core::ffi::c_void, propertybuffersizeinbytes: u32, writtensizeinbytes: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetPartitionProperty ( partition : WHV_PARTITION_HANDLE , propertycode : WHV_PARTITION_PROPERTY_CODE , propertybuffer : *mut ::core::ffi::c_void , propertybuffersizeinbytes : u32 , writtensizeinbytes : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetPartitionProperty(partition.into_param().abi(), propertycode, propertybuffer, propertybuffersizeinbytes, ::core::mem::transmute(writtensizeinbytes.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVirtualProcessorCounters<P0>(partition: P0, vpindex: u32, counterset: WHV_PROCESSOR_COUNTER_SET, buffer: *mut ::core::ffi::c_void, buffersizeinbytes: u32, byteswritten: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVirtualProcessorCounters ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , counterset : WHV_PROCESSOR_COUNTER_SET , buffer : *mut ::core::ffi::c_void , buffersizeinbytes : u32 , byteswritten : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetVirtualProcessorCounters(partition.into_param().abi(), vpindex, counterset, buffer, buffersizeinbytes, ::core::mem::transmute(byteswritten.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVirtualProcessorCpuidOutput<P0>(partition: P0, vpindex: u32, eax: u32, ecx: u32) -> ::windows::core::Result<WHV_CPUID_OUTPUT> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVirtualProcessorCpuidOutput ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , eax : u32 , ecx : u32 , cpuidoutput : *mut WHV_CPUID_OUTPUT ) -> :: windows::core::HRESULT ); |
| let mut result__ = ::windows::core::zeroed::<WHV_CPUID_OUTPUT>(); |
| WHvGetVirtualProcessorCpuidOutput(partition.into_param().abi(), vpindex, eax, ecx, &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVirtualProcessorInterruptControllerState<P0>(partition: P0, vpindex: u32, state: *mut ::core::ffi::c_void, statesize: u32, writtensize: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVirtualProcessorInterruptControllerState ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , state : *mut ::core::ffi::c_void , statesize : u32 , writtensize : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetVirtualProcessorInterruptControllerState(partition.into_param().abi(), vpindex, state, statesize, ::core::mem::transmute(writtensize.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVirtualProcessorInterruptControllerState2<P0>(partition: P0, vpindex: u32, state: *mut ::core::ffi::c_void, statesize: u32, writtensize: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVirtualProcessorInterruptControllerState2 ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , state : *mut ::core::ffi::c_void , statesize : u32 , writtensize : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetVirtualProcessorInterruptControllerState2(partition.into_param().abi(), vpindex, state, statesize, ::core::mem::transmute(writtensize.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVirtualProcessorRegisters<P0>(partition: P0, vpindex: u32, registernames: *const WHV_REGISTER_NAME, registercount: u32, registervalues: *mut WHV_REGISTER_VALUE) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVirtualProcessorRegisters ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , registernames : *const WHV_REGISTER_NAME , registercount : u32 , registervalues : *mut WHV_REGISTER_VALUE ) -> :: windows::core::HRESULT ); |
| WHvGetVirtualProcessorRegisters(partition.into_param().abi(), vpindex, registernames, registercount, registervalues).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVirtualProcessorState<P0>(partition: P0, vpindex: u32, statetype: WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer: *mut ::core::ffi::c_void, buffersizeinbytes: u32, byteswritten: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVirtualProcessorState ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , statetype : WHV_VIRTUAL_PROCESSOR_STATE_TYPE , buffer : *mut ::core::ffi::c_void , buffersizeinbytes : u32 , byteswritten : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetVirtualProcessorState(partition.into_param().abi(), vpindex, statetype, buffer, buffersizeinbytes, ::core::mem::transmute(byteswritten.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVirtualProcessorXsaveState<P0>(partition: P0, vpindex: u32, buffer: *mut ::core::ffi::c_void, buffersizeinbytes: u32, byteswritten: *mut u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVirtualProcessorXsaveState ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , buffer : *mut ::core::ffi::c_void , buffersizeinbytes : u32 , byteswritten : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetVirtualProcessorXsaveState(partition.into_param().abi(), vpindex, buffer, buffersizeinbytes, byteswritten).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVpciDeviceInterruptTarget<P0>(partition: P0, logicaldeviceid: u64, index: u32, multimessagenumber: u32, target: *mut WHV_VPCI_INTERRUPT_TARGET, targetsizeinbytes: u32, byteswritten: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVpciDeviceInterruptTarget ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , index : u32 , multimessagenumber : u32 , target : *mut WHV_VPCI_INTERRUPT_TARGET , targetsizeinbytes : u32 , byteswritten : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetVpciDeviceInterruptTarget(partition.into_param().abi(), logicaldeviceid, index, multimessagenumber, target, targetsizeinbytes, ::core::mem::transmute(byteswritten.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVpciDeviceNotification<P0>(partition: P0, logicaldeviceid: u64, notification: *mut WHV_VPCI_DEVICE_NOTIFICATION, notificationsizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVpciDeviceNotification ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , notification : *mut WHV_VPCI_DEVICE_NOTIFICATION , notificationsizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvGetVpciDeviceNotification(partition.into_param().abi(), logicaldeviceid, notification, notificationsizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvGetVpciDeviceProperty<P0>(partition: P0, logicaldeviceid: u64, propertycode: WHV_VPCI_DEVICE_PROPERTY_CODE, propertybuffer: *mut ::core::ffi::c_void, propertybuffersizeinbytes: u32, writtensizeinbytes: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvGetVpciDeviceProperty ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , propertycode : WHV_VPCI_DEVICE_PROPERTY_CODE , propertybuffer : *mut ::core::ffi::c_void , propertybuffersizeinbytes : u32 , writtensizeinbytes : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvGetVpciDeviceProperty(partition.into_param().abi(), logicaldeviceid, propertycode, propertybuffer, propertybuffersizeinbytes, ::core::mem::transmute(writtensizeinbytes.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvMapGpaRange<P0>(partition: P0, sourceaddress: *const ::core::ffi::c_void, guestaddress: u64, sizeinbytes: u64, flags: WHV_MAP_GPA_RANGE_FLAGS) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvMapGpaRange ( partition : WHV_PARTITION_HANDLE , sourceaddress : *const ::core::ffi::c_void , guestaddress : u64 , sizeinbytes : u64 , flags : WHV_MAP_GPA_RANGE_FLAGS ) -> :: windows::core::HRESULT ); |
| WHvMapGpaRange(partition.into_param().abi(), sourceaddress, guestaddress, sizeinbytes, flags).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WHvMapGpaRange2<P0, P1>(partition: P0, process: P1, sourceaddress: *const ::core::ffi::c_void, guestaddress: u64, sizeinbytes: u64, flags: WHV_MAP_GPA_RANGE_FLAGS) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvMapGpaRange2 ( partition : WHV_PARTITION_HANDLE , process : super::super::Foundation:: HANDLE , sourceaddress : *const ::core::ffi::c_void , guestaddress : u64 , sizeinbytes : u64 , flags : WHV_MAP_GPA_RANGE_FLAGS ) -> :: windows::core::HRESULT ); |
| WHvMapGpaRange2(partition.into_param().abi(), process.into_param().abi(), sourceaddress, guestaddress, sizeinbytes, flags).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvMapVpciDeviceInterrupt<P0>(partition: P0, logicaldeviceid: u64, index: u32, messagecount: u32, target: *const WHV_VPCI_INTERRUPT_TARGET, msiaddress: *mut u64, msidata: *mut u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvMapVpciDeviceInterrupt ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , index : u32 , messagecount : u32 , target : *const WHV_VPCI_INTERRUPT_TARGET , msiaddress : *mut u64 , msidata : *mut u32 ) -> :: windows::core::HRESULT ); |
| WHvMapVpciDeviceInterrupt(partition.into_param().abi(), logicaldeviceid, index, messagecount, target, msiaddress, msidata).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvMapVpciDeviceMmioRanges<P0>(partition: P0, logicaldeviceid: u64, mappingcount: *mut u32, mappings: *mut *mut WHV_VPCI_MMIO_MAPPING) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvMapVpciDeviceMmioRanges ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , mappingcount : *mut u32 , mappings : *mut *mut WHV_VPCI_MMIO_MAPPING ) -> :: windows::core::HRESULT ); |
| WHvMapVpciDeviceMmioRanges(partition.into_param().abi(), logicaldeviceid, mappingcount, mappings).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvPostVirtualProcessorSynicMessage<P0>(partition: P0, vpindex: u32, sintindex: u32, message: *const ::core::ffi::c_void, messagesizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvPostVirtualProcessorSynicMessage ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , sintindex : u32 , message : *const ::core::ffi::c_void , messagesizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvPostVirtualProcessorSynicMessage(partition.into_param().abi(), vpindex, sintindex, message, messagesizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvQueryGpaRangeDirtyBitmap<P0>(partition: P0, guestaddress: u64, rangesizeinbytes: u64, bitmap: ::core::option::Option<*mut u64>, bitmapsizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvQueryGpaRangeDirtyBitmap ( partition : WHV_PARTITION_HANDLE , guestaddress : u64 , rangesizeinbytes : u64 , bitmap : *mut u64 , bitmapsizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvQueryGpaRangeDirtyBitmap(partition.into_param().abi(), guestaddress, rangesizeinbytes, ::core::mem::transmute(bitmap.unwrap_or(::std::ptr::null_mut())), bitmapsizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvReadGpaRange<P0>(partition: P0, vpindex: u32, guestaddress: u64, controls: WHV_ACCESS_GPA_CONTROLS, data: *mut ::core::ffi::c_void, datasizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvReadGpaRange ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , guestaddress : u64 , controls : WHV_ACCESS_GPA_CONTROLS , data : *mut ::core::ffi::c_void , datasizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvReadGpaRange(partition.into_param().abi(), vpindex, guestaddress, ::core::mem::transmute(controls), data, datasizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvReadVpciDeviceRegister<P0>(partition: P0, logicaldeviceid: u64, register: *const WHV_VPCI_DEVICE_REGISTER, data: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvReadVpciDeviceRegister ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , register : *const WHV_VPCI_DEVICE_REGISTER , data : *mut ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| WHvReadVpciDeviceRegister(partition.into_param().abi(), logicaldeviceid, register, data).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WHvRegisterPartitionDoorbellEvent<P0, P1>(partition: P0, matchdata: *const WHV_DOORBELL_MATCH_DATA, eventhandle: P1) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvRegisterPartitionDoorbellEvent ( partition : WHV_PARTITION_HANDLE , matchdata : *const WHV_DOORBELL_MATCH_DATA , eventhandle : super::super::Foundation:: HANDLE ) -> :: windows::core::HRESULT ); |
| WHvRegisterPartitionDoorbellEvent(partition.into_param().abi(), matchdata, eventhandle.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvRequestInterrupt<P0>(partition: P0, interrupt: *const WHV_INTERRUPT_CONTROL, interruptcontrolsize: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvRequestInterrupt ( partition : WHV_PARTITION_HANDLE , interrupt : *const WHV_INTERRUPT_CONTROL , interruptcontrolsize : u32 ) -> :: windows::core::HRESULT ); |
| WHvRequestInterrupt(partition.into_param().abi(), interrupt, interruptcontrolsize).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvRequestVpciDeviceInterrupt<P0>(partition: P0, logicaldeviceid: u64, msiaddress: u64, msidata: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvRequestVpciDeviceInterrupt ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , msiaddress : u64 , msidata : u32 ) -> :: windows::core::HRESULT ); |
| WHvRequestVpciDeviceInterrupt(partition.into_param().abi(), logicaldeviceid, msiaddress, msidata).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvResetPartition<P0>(partition: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvResetPartition ( partition : WHV_PARTITION_HANDLE ) -> :: windows::core::HRESULT ); |
| WHvResetPartition(partition.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvResumePartitionTime<P0>(partition: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvResumePartitionTime ( partition : WHV_PARTITION_HANDLE ) -> :: windows::core::HRESULT ); |
| WHvResumePartitionTime(partition.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvRetargetVpciDeviceInterrupt<P0>(partition: P0, logicaldeviceid: u64, msiaddress: u64, msidata: u32, target: *const WHV_VPCI_INTERRUPT_TARGET) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvRetargetVpciDeviceInterrupt ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , msiaddress : u64 , msidata : u32 , target : *const WHV_VPCI_INTERRUPT_TARGET ) -> :: windows::core::HRESULT ); |
| WHvRetargetVpciDeviceInterrupt(partition.into_param().abi(), logicaldeviceid, msiaddress, msidata, target).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvRunVirtualProcessor<P0>(partition: P0, vpindex: u32, exitcontext: *mut ::core::ffi::c_void, exitcontextsizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvRunVirtualProcessor ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , exitcontext : *mut ::core::ffi::c_void , exitcontextsizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvRunVirtualProcessor(partition.into_param().abi(), vpindex, exitcontext, exitcontextsizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvSetNotificationPortProperty<P0>(partition: P0, porthandle: *const ::core::ffi::c_void, propertycode: WHV_NOTIFICATION_PORT_PROPERTY_CODE, propertyvalue: u64) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSetNotificationPortProperty ( partition : WHV_PARTITION_HANDLE , porthandle : *const ::core::ffi::c_void , propertycode : WHV_NOTIFICATION_PORT_PROPERTY_CODE , propertyvalue : u64 ) -> :: windows::core::HRESULT ); |
| WHvSetNotificationPortProperty(partition.into_param().abi(), porthandle, propertycode, propertyvalue).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvSetPartitionProperty<P0>(partition: P0, propertycode: WHV_PARTITION_PROPERTY_CODE, propertybuffer: *const ::core::ffi::c_void, propertybuffersizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSetPartitionProperty ( partition : WHV_PARTITION_HANDLE , propertycode : WHV_PARTITION_PROPERTY_CODE , propertybuffer : *const ::core::ffi::c_void , propertybuffersizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvSetPartitionProperty(partition.into_param().abi(), propertycode, propertybuffer, propertybuffersizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvSetVirtualProcessorInterruptControllerState<P0>(partition: P0, vpindex: u32, state: *const ::core::ffi::c_void, statesize: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSetVirtualProcessorInterruptControllerState ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , state : *const ::core::ffi::c_void , statesize : u32 ) -> :: windows::core::HRESULT ); |
| WHvSetVirtualProcessorInterruptControllerState(partition.into_param().abi(), vpindex, state, statesize).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvSetVirtualProcessorInterruptControllerState2<P0>(partition: P0, vpindex: u32, state: *const ::core::ffi::c_void, statesize: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSetVirtualProcessorInterruptControllerState2 ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , state : *const ::core::ffi::c_void , statesize : u32 ) -> :: windows::core::HRESULT ); |
| WHvSetVirtualProcessorInterruptControllerState2(partition.into_param().abi(), vpindex, state, statesize).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvSetVirtualProcessorRegisters<P0>(partition: P0, vpindex: u32, registernames: *const WHV_REGISTER_NAME, registercount: u32, registervalues: *const WHV_REGISTER_VALUE) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSetVirtualProcessorRegisters ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , registernames : *const WHV_REGISTER_NAME , registercount : u32 , registervalues : *const WHV_REGISTER_VALUE ) -> :: windows::core::HRESULT ); |
| WHvSetVirtualProcessorRegisters(partition.into_param().abi(), vpindex, registernames, registercount, registervalues).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvSetVirtualProcessorState<P0>(partition: P0, vpindex: u32, statetype: WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer: *const ::core::ffi::c_void, buffersizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSetVirtualProcessorState ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , statetype : WHV_VIRTUAL_PROCESSOR_STATE_TYPE , buffer : *const ::core::ffi::c_void , buffersizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvSetVirtualProcessorState(partition.into_param().abi(), vpindex, statetype, buffer, buffersizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvSetVirtualProcessorXsaveState<P0>(partition: P0, vpindex: u32, buffer: *const ::core::ffi::c_void, buffersizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSetVirtualProcessorXsaveState ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , buffer : *const ::core::ffi::c_void , buffersizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvSetVirtualProcessorXsaveState(partition.into_param().abi(), vpindex, buffer, buffersizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_System_Power\"`*"] |
| #[cfg(feature = "Win32_System_Power")] |
| #[inline] |
| pub unsafe fn WHvSetVpciDevicePowerState<P0>(partition: P0, logicaldeviceid: u64, powerstate: super::Power::DEVICE_POWER_STATE) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSetVpciDevicePowerState ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , powerstate : super::Power:: DEVICE_POWER_STATE ) -> :: windows::core::HRESULT ); |
| WHvSetVpciDevicePowerState(partition.into_param().abi(), logicaldeviceid, powerstate).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvSetupPartition<P0>(partition: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSetupPartition ( partition : WHV_PARTITION_HANDLE ) -> :: windows::core::HRESULT ); |
| WHvSetupPartition(partition.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WHvSignalVirtualProcessorSynicEvent<P0>(partition: P0, synicevent: WHV_SYNIC_EVENT_PARAMETERS, newlysignaled: ::core::option::Option<*mut super::super::Foundation::BOOL>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSignalVirtualProcessorSynicEvent ( partition : WHV_PARTITION_HANDLE , synicevent : WHV_SYNIC_EVENT_PARAMETERS , newlysignaled : *mut super::super::Foundation:: BOOL ) -> :: windows::core::HRESULT ); |
| WHvSignalVirtualProcessorSynicEvent(partition.into_param().abi(), ::core::mem::transmute(synicevent), ::core::mem::transmute(newlysignaled.unwrap_or(::std::ptr::null_mut()))).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WHvStartPartitionMigration<P0>(partition: P0) -> ::windows::core::Result<super::super::Foundation::HANDLE> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvStartPartitionMigration ( partition : WHV_PARTITION_HANDLE , migrationhandle : *mut super::super::Foundation:: HANDLE ) -> :: windows::core::HRESULT ); |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::HANDLE>(); |
| WHvStartPartitionMigration(partition.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvSuspendPartitionTime<P0>(partition: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvSuspendPartitionTime ( partition : WHV_PARTITION_HANDLE ) -> :: windows::core::HRESULT ); |
| WHvSuspendPartitionTime(partition.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvTranslateGva<P0>(partition: P0, vpindex: u32, gva: u64, translateflags: WHV_TRANSLATE_GVA_FLAGS, translationresult: *mut WHV_TRANSLATE_GVA_RESULT, gpa: *mut u64) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvTranslateGva ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , gva : u64 , translateflags : WHV_TRANSLATE_GVA_FLAGS , translationresult : *mut WHV_TRANSLATE_GVA_RESULT , gpa : *mut u64 ) -> :: windows::core::HRESULT ); |
| WHvTranslateGva(partition.into_param().abi(), vpindex, gva, translateflags, translationresult, gpa).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvUnmapGpaRange<P0>(partition: P0, guestaddress: u64, sizeinbytes: u64) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvUnmapGpaRange ( partition : WHV_PARTITION_HANDLE , guestaddress : u64 , sizeinbytes : u64 ) -> :: windows::core::HRESULT ); |
| WHvUnmapGpaRange(partition.into_param().abi(), guestaddress, sizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvUnmapVpciDeviceInterrupt<P0>(partition: P0, logicaldeviceid: u64, index: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvUnmapVpciDeviceInterrupt ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , index : u32 ) -> :: windows::core::HRESULT ); |
| WHvUnmapVpciDeviceInterrupt(partition.into_param().abi(), logicaldeviceid, index).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvUnmapVpciDeviceMmioRanges<P0>(partition: P0, logicaldeviceid: u64) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvUnmapVpciDeviceMmioRanges ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 ) -> :: windows::core::HRESULT ); |
| WHvUnmapVpciDeviceMmioRanges(partition.into_param().abi(), logicaldeviceid).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvUnregisterPartitionDoorbellEvent<P0>(partition: P0, matchdata: *const WHV_DOORBELL_MATCH_DATA) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvUnregisterPartitionDoorbellEvent ( partition : WHV_PARTITION_HANDLE , matchdata : *const WHV_DOORBELL_MATCH_DATA ) -> :: windows::core::HRESULT ); |
| WHvUnregisterPartitionDoorbellEvent(partition.into_param().abi(), matchdata).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvUpdateTriggerParameters<P0>(partition: P0, parameters: *const WHV_TRIGGER_PARAMETERS, triggerhandle: *const ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvUpdateTriggerParameters ( partition : WHV_PARTITION_HANDLE , parameters : *const WHV_TRIGGER_PARAMETERS , triggerhandle : *const ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| WHvUpdateTriggerParameters(partition.into_param().abi(), parameters, triggerhandle).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvWriteGpaRange<P0>(partition: P0, vpindex: u32, guestaddress: u64, controls: WHV_ACCESS_GPA_CONTROLS, data: *const ::core::ffi::c_void, datasizeinbytes: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvWriteGpaRange ( partition : WHV_PARTITION_HANDLE , vpindex : u32 , guestaddress : u64 , controls : WHV_ACCESS_GPA_CONTROLS , data : *const ::core::ffi::c_void , datasizeinbytes : u32 ) -> :: windows::core::HRESULT ); |
| WHvWriteGpaRange(partition.into_param().abi(), vpindex, guestaddress, ::core::mem::transmute(controls), data, datasizeinbytes).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[inline] |
| pub unsafe fn WHvWriteVpciDeviceRegister<P0>(partition: P0, logicaldeviceid: u64, register: *const WHV_VPCI_DEVICE_REGISTER, data: *const ::core::ffi::c_void) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<WHV_PARTITION_HANDLE>, |
| { |
| ::windows::imp::link ! ( "winhvplatform.dll""system" fn WHvWriteVpciDeviceRegister ( partition : WHV_PARTITION_HANDLE , logicaldeviceid : u64 , register : *const WHV_VPCI_DEVICE_REGISTER , data : *const ::core::ffi::c_void ) -> :: windows::core::HRESULT ); |
| WHvWriteVpciDeviceRegister(partition.into_param().abi(), logicaldeviceid, register, data).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GUID_DEVINTERFACE_VM_GENCOUNTER: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3ff2c92b_6598_4e60_8e1c_0ccf4927e319); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_PCI_BAR_COUNT: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HVSOCKET_ADDRESS_FLAG_PASSTHRU: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HVSOCKET_CONNECTED_SUSPEND: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HVSOCKET_CONNECT_TIMEOUT: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HVSOCKET_CONNECT_TIMEOUT_MAX: u32 = 300000u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HVSOCKET_CONTAINER_PASSTHRU: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HV_GUID_BROADCAST: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xffffffff_ffff_ffff_ffff_ffffffffffff); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HV_GUID_CHILDREN: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90db8b89_0d35_4f79_8ce9_49ea0ac8b7cd); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HV_GUID_LOOPBACK: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe0e16197_dd56_4a10_9195_5ee7a155a838); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HV_GUID_PARENT: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa42e7cda_d03f_480c_9cc2_a4de20abb878); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HV_GUID_SILOHOST: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36bd0c5c_7276_4223_88ba_7d03b654c568); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HV_GUID_VSOCK_TEMPLATE: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00000000_facb_11e6_bd58_64006a7986d3); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HV_GUID_ZERO: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00000000_0000_0000_0000_000000000000); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HV_PROTOCOL_RAW: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const IOCTL_VMGENCOUNTER_READ: u32 = 3325956u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const VM_GENCOUNTER_SYMBOLIC_LINK_NAME: ::windows::core::PCWSTR = ::windows::w!("\\VmGenerationCounter"); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHV_ANY_VP: u32 = 4294967295u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHV_HYPERCALL_CONTEXT_MAX_XMM_REGISTERS: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHV_MAX_DEVICE_ID_SIZE_IN_CHARS: u32 = 200u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHV_PROCESSOR_FEATURES_BANKS_COUNT: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHV_READ_WRITE_GPA_RANGE_MAX_SIZE: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHV_SYNIC_MESSAGE_SIZE: u32 = 256u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_COUNT: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHV_VPCI_TYPE0_BAR_COUNT: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct GUEST_OS_MICROSOFT_IDS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsMicrosoftUndefined: GUEST_OS_MICROSOFT_IDS = GUEST_OS_MICROSOFT_IDS(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsMicrosoftMSDOS: GUEST_OS_MICROSOFT_IDS = GUEST_OS_MICROSOFT_IDS(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsMicrosoftWindows3x: GUEST_OS_MICROSOFT_IDS = GUEST_OS_MICROSOFT_IDS(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsMicrosoftWindows9x: GUEST_OS_MICROSOFT_IDS = GUEST_OS_MICROSOFT_IDS(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsMicrosoftWindowsNT: GUEST_OS_MICROSOFT_IDS = GUEST_OS_MICROSOFT_IDS(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsMicrosoftWindowsCE: GUEST_OS_MICROSOFT_IDS = GUEST_OS_MICROSOFT_IDS(5i32); |
| impl ::core::marker::Copy for GUEST_OS_MICROSOFT_IDS {} |
| impl ::core::clone::Clone for GUEST_OS_MICROSOFT_IDS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for GUEST_OS_MICROSOFT_IDS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for GUEST_OS_MICROSOFT_IDS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for GUEST_OS_MICROSOFT_IDS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("GUEST_OS_MICROSOFT_IDS").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct GUEST_OS_OPENSOURCE_IDS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsOpenSourceUndefined: GUEST_OS_OPENSOURCE_IDS = GUEST_OS_OPENSOURCE_IDS(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsOpenSourceLinux: GUEST_OS_OPENSOURCE_IDS = GUEST_OS_OPENSOURCE_IDS(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsOpenSourceFreeBSD: GUEST_OS_OPENSOURCE_IDS = GUEST_OS_OPENSOURCE_IDS(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsOpenSourceXen: GUEST_OS_OPENSOURCE_IDS = GUEST_OS_OPENSOURCE_IDS(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsOpenSourceIllumos: GUEST_OS_OPENSOURCE_IDS = GUEST_OS_OPENSOURCE_IDS(4i32); |
| impl ::core::marker::Copy for GUEST_OS_OPENSOURCE_IDS {} |
| impl ::core::clone::Clone for GUEST_OS_OPENSOURCE_IDS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for GUEST_OS_OPENSOURCE_IDS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for GUEST_OS_OPENSOURCE_IDS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for GUEST_OS_OPENSOURCE_IDS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("GUEST_OS_OPENSOURCE_IDS").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct GUEST_OS_VENDOR(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsVendorUndefined: GUEST_OS_VENDOR = GUEST_OS_VENDOR(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsVendorMicrosoft: GUEST_OS_VENDOR = GUEST_OS_VENDOR(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsVendorHPE: GUEST_OS_VENDOR = GUEST_OS_VENDOR(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const GuestOsVendorLANCOM: GUEST_OS_VENDOR = GUEST_OS_VENDOR(512i32); |
| impl ::core::marker::Copy for GUEST_OS_VENDOR {} |
| impl ::core::clone::Clone for GUEST_OS_VENDOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for GUEST_OS_VENDOR { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for GUEST_OS_VENDOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for GUEST_OS_VENDOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("GUEST_OS_VENDOR").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct HDV_DEVICE_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HdvDeviceTypeUndefined: HDV_DEVICE_TYPE = HDV_DEVICE_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HdvDeviceTypePCI: HDV_DEVICE_TYPE = HDV_DEVICE_TYPE(1i32); |
| impl ::core::marker::Copy for HDV_DEVICE_TYPE {} |
| impl ::core::clone::Clone for HDV_DEVICE_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for HDV_DEVICE_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for HDV_DEVICE_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for HDV_DEVICE_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("HDV_DEVICE_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct HDV_DOORBELL_FLAGS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_ANY: HDV_DOORBELL_FLAGS = HDV_DOORBELL_FLAGS(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_BYTE: HDV_DOORBELL_FLAGS = HDV_DOORBELL_FLAGS(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_WORD: HDV_DOORBELL_FLAGS = HDV_DOORBELL_FLAGS(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_DWORD: HDV_DOORBELL_FLAGS = HDV_DOORBELL_FLAGS(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_QWORD: HDV_DOORBELL_FLAGS = HDV_DOORBELL_FLAGS(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_DOORBELL_FLAG_TRIGGER_ANY_VALUE: HDV_DOORBELL_FLAGS = HDV_DOORBELL_FLAGS(-2147483648i32); |
| impl ::core::marker::Copy for HDV_DOORBELL_FLAGS {} |
| impl ::core::clone::Clone for HDV_DOORBELL_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for HDV_DOORBELL_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for HDV_DOORBELL_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for HDV_DOORBELL_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("HDV_DOORBELL_FLAGS").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct HDV_MMIO_MAPPING_FLAGS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HdvMmioMappingFlagNone: HDV_MMIO_MAPPING_FLAGS = HDV_MMIO_MAPPING_FLAGS(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HdvMmioMappingFlagWriteable: HDV_MMIO_MAPPING_FLAGS = HDV_MMIO_MAPPING_FLAGS(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HdvMmioMappingFlagExecutable: HDV_MMIO_MAPPING_FLAGS = HDV_MMIO_MAPPING_FLAGS(2i32); |
| impl ::core::marker::Copy for HDV_MMIO_MAPPING_FLAGS {} |
| impl ::core::clone::Clone for HDV_MMIO_MAPPING_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for HDV_MMIO_MAPPING_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for HDV_MMIO_MAPPING_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for HDV_MMIO_MAPPING_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("HDV_MMIO_MAPPING_FLAGS").field(&self.0).finish() |
| } |
| } |
| impl HDV_MMIO_MAPPING_FLAGS { |
| pub const fn contains(&self, other: Self) -> bool { |
| self.0 & other.0 == other.0 |
| } |
| } |
| impl ::core::ops::BitOr for HDV_MMIO_MAPPING_FLAGS { |
| type Output = Self; |
| fn bitor(self, other: Self) -> Self { |
| Self(self.0 | other.0) |
| } |
| } |
| impl ::core::ops::BitAnd for HDV_MMIO_MAPPING_FLAGS { |
| type Output = Self; |
| fn bitand(self, other: Self) -> Self { |
| Self(self.0 & other.0) |
| } |
| } |
| impl ::core::ops::BitOrAssign for HDV_MMIO_MAPPING_FLAGS { |
| fn bitor_assign(&mut self, other: Self) { |
| self.0.bitor_assign(other.0) |
| } |
| } |
| impl ::core::ops::BitAndAssign for HDV_MMIO_MAPPING_FLAGS { |
| fn bitand_assign(&mut self, other: Self) { |
| self.0.bitand_assign(other.0) |
| } |
| } |
| impl ::core::ops::Not for HDV_MMIO_MAPPING_FLAGS { |
| type Output = Self; |
| fn not(self) -> Self { |
| Self(self.0.not()) |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct HDV_PCI_BAR_SELECTOR(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_PCI_BAR0: HDV_PCI_BAR_SELECTOR = HDV_PCI_BAR_SELECTOR(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_PCI_BAR1: HDV_PCI_BAR_SELECTOR = HDV_PCI_BAR_SELECTOR(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_PCI_BAR2: HDV_PCI_BAR_SELECTOR = HDV_PCI_BAR_SELECTOR(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_PCI_BAR3: HDV_PCI_BAR_SELECTOR = HDV_PCI_BAR_SELECTOR(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_PCI_BAR4: HDV_PCI_BAR_SELECTOR = HDV_PCI_BAR_SELECTOR(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HDV_PCI_BAR5: HDV_PCI_BAR_SELECTOR = HDV_PCI_BAR_SELECTOR(5i32); |
| impl ::core::marker::Copy for HDV_PCI_BAR_SELECTOR {} |
| impl ::core::clone::Clone for HDV_PCI_BAR_SELECTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for HDV_PCI_BAR_SELECTOR { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for HDV_PCI_BAR_SELECTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for HDV_PCI_BAR_SELECTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("HDV_PCI_BAR_SELECTOR").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct HDV_PCI_INTERFACE_VERSION(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HdvPciDeviceInterfaceVersionInvalid: HDV_PCI_INTERFACE_VERSION = HDV_PCI_INTERFACE_VERSION(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const HdvPciDeviceInterfaceVersion1: HDV_PCI_INTERFACE_VERSION = HDV_PCI_INTERFACE_VERSION(1i32); |
| impl ::core::marker::Copy for HDV_PCI_INTERFACE_VERSION {} |
| impl ::core::clone::Clone for HDV_PCI_INTERFACE_VERSION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for HDV_PCI_INTERFACE_VERSION { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for HDV_PCI_INTERFACE_VERSION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for HDV_PCI_INTERFACE_VERSION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("HDV_PCI_INTERFACE_VERSION").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PAGING_MODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Paging_Invalid: PAGING_MODE = PAGING_MODE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Paging_NonPaged: PAGING_MODE = PAGING_MODE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Paging_32Bit: PAGING_MODE = PAGING_MODE(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Paging_Pae: PAGING_MODE = PAGING_MODE(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Paging_Long: PAGING_MODE = PAGING_MODE(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Paging_Armv8: PAGING_MODE = PAGING_MODE(5i32); |
| impl ::core::marker::Copy for PAGING_MODE {} |
| impl ::core::clone::Clone for PAGING_MODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PAGING_MODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PAGING_MODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PAGING_MODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PAGING_MODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct REGISTER_ID(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRax: REGISTER_ID = REGISTER_ID(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRcx: REGISTER_ID = REGISTER_ID(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRdx: REGISTER_ID = REGISTER_ID(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRbx: REGISTER_ID = REGISTER_ID(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRsp: REGISTER_ID = REGISTER_ID(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRbp: REGISTER_ID = REGISTER_ID(5i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRsi: REGISTER_ID = REGISTER_ID(6i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRdi: REGISTER_ID = REGISTER_ID(7i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterR8: REGISTER_ID = REGISTER_ID(8i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterR9: REGISTER_ID = REGISTER_ID(9i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterR10: REGISTER_ID = REGISTER_ID(10i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterR11: REGISTER_ID = REGISTER_ID(11i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterR12: REGISTER_ID = REGISTER_ID(12i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterR13: REGISTER_ID = REGISTER_ID(13i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterR14: REGISTER_ID = REGISTER_ID(14i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterR15: REGISTER_ID = REGISTER_ID(15i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRip: REGISTER_ID = REGISTER_ID(16i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterRFlags: REGISTER_ID = REGISTER_ID(17i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm0: REGISTER_ID = REGISTER_ID(18i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm1: REGISTER_ID = REGISTER_ID(19i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm2: REGISTER_ID = REGISTER_ID(20i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm3: REGISTER_ID = REGISTER_ID(21i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm4: REGISTER_ID = REGISTER_ID(22i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm5: REGISTER_ID = REGISTER_ID(23i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm6: REGISTER_ID = REGISTER_ID(24i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm7: REGISTER_ID = REGISTER_ID(25i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm8: REGISTER_ID = REGISTER_ID(26i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm9: REGISTER_ID = REGISTER_ID(27i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm10: REGISTER_ID = REGISTER_ID(28i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm11: REGISTER_ID = REGISTER_ID(29i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm12: REGISTER_ID = REGISTER_ID(30i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm13: REGISTER_ID = REGISTER_ID(31i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm14: REGISTER_ID = REGISTER_ID(32i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmm15: REGISTER_ID = REGISTER_ID(33i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFpMmx0: REGISTER_ID = REGISTER_ID(34i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFpMmx1: REGISTER_ID = REGISTER_ID(35i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFpMmx2: REGISTER_ID = REGISTER_ID(36i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFpMmx3: REGISTER_ID = REGISTER_ID(37i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFpMmx4: REGISTER_ID = REGISTER_ID(38i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFpMmx5: REGISTER_ID = REGISTER_ID(39i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFpMmx6: REGISTER_ID = REGISTER_ID(40i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFpMmx7: REGISTER_ID = REGISTER_ID(41i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFpControlStatus: REGISTER_ID = REGISTER_ID(42i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterXmmControlStatus: REGISTER_ID = REGISTER_ID(43i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterCr0: REGISTER_ID = REGISTER_ID(44i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterCr2: REGISTER_ID = REGISTER_ID(45i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterCr3: REGISTER_ID = REGISTER_ID(46i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterCr4: REGISTER_ID = REGISTER_ID(47i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterCr8: REGISTER_ID = REGISTER_ID(48i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterEfer: REGISTER_ID = REGISTER_ID(49i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterDr0: REGISTER_ID = REGISTER_ID(50i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterDr1: REGISTER_ID = REGISTER_ID(51i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterDr2: REGISTER_ID = REGISTER_ID(52i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterDr3: REGISTER_ID = REGISTER_ID(53i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterDr6: REGISTER_ID = REGISTER_ID(54i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterDr7: REGISTER_ID = REGISTER_ID(55i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterEs: REGISTER_ID = REGISTER_ID(56i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterCs: REGISTER_ID = REGISTER_ID(57i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterSs: REGISTER_ID = REGISTER_ID(58i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterDs: REGISTER_ID = REGISTER_ID(59i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterFs: REGISTER_ID = REGISTER_ID(60i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterGs: REGISTER_ID = REGISTER_ID(61i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterLdtr: REGISTER_ID = REGISTER_ID(62i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterTr: REGISTER_ID = REGISTER_ID(63i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterIdtr: REGISTER_ID = REGISTER_ID(64i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterGdtr: REGISTER_ID = REGISTER_ID(65i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const X64_RegisterMax: REGISTER_ID = REGISTER_ID(66i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX0: REGISTER_ID = REGISTER_ID(67i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX1: REGISTER_ID = REGISTER_ID(68i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX2: REGISTER_ID = REGISTER_ID(69i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX3: REGISTER_ID = REGISTER_ID(70i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX4: REGISTER_ID = REGISTER_ID(71i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX5: REGISTER_ID = REGISTER_ID(72i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX6: REGISTER_ID = REGISTER_ID(73i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX7: REGISTER_ID = REGISTER_ID(74i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX8: REGISTER_ID = REGISTER_ID(75i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX9: REGISTER_ID = REGISTER_ID(76i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX10: REGISTER_ID = REGISTER_ID(77i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX11: REGISTER_ID = REGISTER_ID(78i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX12: REGISTER_ID = REGISTER_ID(79i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX13: REGISTER_ID = REGISTER_ID(80i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX14: REGISTER_ID = REGISTER_ID(81i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX15: REGISTER_ID = REGISTER_ID(82i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX16: REGISTER_ID = REGISTER_ID(83i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX17: REGISTER_ID = REGISTER_ID(84i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX18: REGISTER_ID = REGISTER_ID(85i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX19: REGISTER_ID = REGISTER_ID(86i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX20: REGISTER_ID = REGISTER_ID(87i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX21: REGISTER_ID = REGISTER_ID(88i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX22: REGISTER_ID = REGISTER_ID(89i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX23: REGISTER_ID = REGISTER_ID(90i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX24: REGISTER_ID = REGISTER_ID(91i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX25: REGISTER_ID = REGISTER_ID(92i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX26: REGISTER_ID = REGISTER_ID(93i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX27: REGISTER_ID = REGISTER_ID(94i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterX28: REGISTER_ID = REGISTER_ID(95i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterXFp: REGISTER_ID = REGISTER_ID(96i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterXLr: REGISTER_ID = REGISTER_ID(97i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterPc: REGISTER_ID = REGISTER_ID(98i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterSpEl0: REGISTER_ID = REGISTER_ID(99i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterSpEl1: REGISTER_ID = REGISTER_ID(100i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterCpsr: REGISTER_ID = REGISTER_ID(101i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ0: REGISTER_ID = REGISTER_ID(102i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ1: REGISTER_ID = REGISTER_ID(103i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ2: REGISTER_ID = REGISTER_ID(104i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ3: REGISTER_ID = REGISTER_ID(105i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ4: REGISTER_ID = REGISTER_ID(106i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ5: REGISTER_ID = REGISTER_ID(107i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ6: REGISTER_ID = REGISTER_ID(108i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ7: REGISTER_ID = REGISTER_ID(109i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ8: REGISTER_ID = REGISTER_ID(110i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ9: REGISTER_ID = REGISTER_ID(111i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ10: REGISTER_ID = REGISTER_ID(112i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ11: REGISTER_ID = REGISTER_ID(113i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ12: REGISTER_ID = REGISTER_ID(114i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ13: REGISTER_ID = REGISTER_ID(115i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ14: REGISTER_ID = REGISTER_ID(116i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ15: REGISTER_ID = REGISTER_ID(117i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ16: REGISTER_ID = REGISTER_ID(118i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ17: REGISTER_ID = REGISTER_ID(119i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ18: REGISTER_ID = REGISTER_ID(120i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ19: REGISTER_ID = REGISTER_ID(121i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ20: REGISTER_ID = REGISTER_ID(122i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ21: REGISTER_ID = REGISTER_ID(123i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ22: REGISTER_ID = REGISTER_ID(124i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ23: REGISTER_ID = REGISTER_ID(125i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ24: REGISTER_ID = REGISTER_ID(126i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ25: REGISTER_ID = REGISTER_ID(127i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ26: REGISTER_ID = REGISTER_ID(128i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ27: REGISTER_ID = REGISTER_ID(129i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ28: REGISTER_ID = REGISTER_ID(130i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ29: REGISTER_ID = REGISTER_ID(131i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ30: REGISTER_ID = REGISTER_ID(132i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterQ31: REGISTER_ID = REGISTER_ID(133i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterFpStatus: REGISTER_ID = REGISTER_ID(134i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterFpControl: REGISTER_ID = REGISTER_ID(135i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterEsrEl1: REGISTER_ID = REGISTER_ID(136i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterSpsrEl1: REGISTER_ID = REGISTER_ID(137i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterFarEl1: REGISTER_ID = REGISTER_ID(138i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterParEl1: REGISTER_ID = REGISTER_ID(139i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterElrEl1: REGISTER_ID = REGISTER_ID(140i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterTtbr0El1: REGISTER_ID = REGISTER_ID(141i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterTtbr1El1: REGISTER_ID = REGISTER_ID(142i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterVbarEl1: REGISTER_ID = REGISTER_ID(143i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterSctlrEl1: REGISTER_ID = REGISTER_ID(144i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterActlrEl1: REGISTER_ID = REGISTER_ID(145i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterTcrEl1: REGISTER_ID = REGISTER_ID(146i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterMairEl1: REGISTER_ID = REGISTER_ID(147i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterAmairEl1: REGISTER_ID = REGISTER_ID(148i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterTpidrEl0: REGISTER_ID = REGISTER_ID(149i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterTpidrroEl0: REGISTER_ID = REGISTER_ID(150i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterTpidrEl1: REGISTER_ID = REGISTER_ID(151i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterContextIdrEl1: REGISTER_ID = REGISTER_ID(152i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterCpacrEl1: REGISTER_ID = REGISTER_ID(153i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterCsselrEl1: REGISTER_ID = REGISTER_ID(154i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterCntkctlEl1: REGISTER_ID = REGISTER_ID(155i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterCntvCvalEl0: REGISTER_ID = REGISTER_ID(156i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterCntvCtlEl0: REGISTER_ID = REGISTER_ID(157i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ARM64_RegisterMax: REGISTER_ID = REGISTER_ID(158i32); |
| impl ::core::marker::Copy for REGISTER_ID {} |
| impl ::core::clone::Clone for REGISTER_ID { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for REGISTER_ID { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for REGISTER_ID { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for REGISTER_ID { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("REGISTER_ID").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct VIRTUAL_PROCESSOR_ARCH(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Arch_Unknown: VIRTUAL_PROCESSOR_ARCH = VIRTUAL_PROCESSOR_ARCH(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Arch_x86: VIRTUAL_PROCESSOR_ARCH = VIRTUAL_PROCESSOR_ARCH(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Arch_x64: VIRTUAL_PROCESSOR_ARCH = VIRTUAL_PROCESSOR_ARCH(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const Arch_Armv8: VIRTUAL_PROCESSOR_ARCH = VIRTUAL_PROCESSOR_ARCH(3i32); |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_ARCH {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_ARCH { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_ARCH { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_ARCH { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for VIRTUAL_PROCESSOR_ARCH { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("VIRTUAL_PROCESSOR_ARCH").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct VIRTUAL_PROCESSOR_VENDOR(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ProcessorVendor_Unknown: VIRTUAL_PROCESSOR_VENDOR = VIRTUAL_PROCESSOR_VENDOR(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ProcessorVendor_Amd: VIRTUAL_PROCESSOR_VENDOR = VIRTUAL_PROCESSOR_VENDOR(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ProcessorVendor_Intel: VIRTUAL_PROCESSOR_VENDOR = VIRTUAL_PROCESSOR_VENDOR(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ProcessorVendor_Hygon: VIRTUAL_PROCESSOR_VENDOR = VIRTUAL_PROCESSOR_VENDOR(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const ProcessorVendor_Arm: VIRTUAL_PROCESSOR_VENDOR = VIRTUAL_PROCESSOR_VENDOR(4i32); |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_VENDOR {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_VENDOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_VENDOR { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_VENDOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for VIRTUAL_PROCESSOR_VENDOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("VIRTUAL_PROCESSOR_VENDOR").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_ADVISE_GPA_RANGE_CODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvAdviseGpaRangeCodePopulate: WHV_ADVISE_GPA_RANGE_CODE = WHV_ADVISE_GPA_RANGE_CODE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvAdviseGpaRangeCodePin: WHV_ADVISE_GPA_RANGE_CODE = WHV_ADVISE_GPA_RANGE_CODE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvAdviseGpaRangeCodeUnpin: WHV_ADVISE_GPA_RANGE_CODE = WHV_ADVISE_GPA_RANGE_CODE(2i32); |
| impl ::core::marker::Copy for WHV_ADVISE_GPA_RANGE_CODE {} |
| impl ::core::clone::Clone for WHV_ADVISE_GPA_RANGE_CODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_ADVISE_GPA_RANGE_CODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_ADVISE_GPA_RANGE_CODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_ADVISE_GPA_RANGE_CODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_ADVISE_GPA_RANGE_CODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_ALLOCATE_VPCI_RESOURCE_FLAGS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvAllocateVpciResourceFlagNone: WHV_ALLOCATE_VPCI_RESOURCE_FLAGS = WHV_ALLOCATE_VPCI_RESOURCE_FLAGS(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvAllocateVpciResourceFlagAllowDirectP2P: WHV_ALLOCATE_VPCI_RESOURCE_FLAGS = WHV_ALLOCATE_VPCI_RESOURCE_FLAGS(1i32); |
| impl ::core::marker::Copy for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS {} |
| impl ::core::clone::Clone for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_ALLOCATE_VPCI_RESOURCE_FLAGS").field(&self.0).finish() |
| } |
| } |
| impl WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| pub const fn contains(&self, other: Self) -> bool { |
| self.0 & other.0 == other.0 |
| } |
| } |
| impl ::core::ops::BitOr for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| type Output = Self; |
| fn bitor(self, other: Self) -> Self { |
| Self(self.0 | other.0) |
| } |
| } |
| impl ::core::ops::BitAnd for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| type Output = Self; |
| fn bitand(self, other: Self) -> Self { |
| Self(self.0 & other.0) |
| } |
| } |
| impl ::core::ops::BitOrAssign for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| fn bitor_assign(&mut self, other: Self) { |
| self.0.bitor_assign(other.0) |
| } |
| } |
| impl ::core::ops::BitAndAssign for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| fn bitand_assign(&mut self, other: Self) { |
| self.0.bitand_assign(other.0) |
| } |
| } |
| impl ::core::ops::Not for WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { |
| type Output = Self; |
| fn not(self) -> Self { |
| Self(self.0.not()) |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_CACHE_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCacheTypeUncached: WHV_CACHE_TYPE = WHV_CACHE_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCacheTypeWriteCombining: WHV_CACHE_TYPE = WHV_CACHE_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCacheTypeWriteThrough: WHV_CACHE_TYPE = WHV_CACHE_TYPE(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCacheTypeWriteBack: WHV_CACHE_TYPE = WHV_CACHE_TYPE(6i32); |
| impl ::core::marker::Copy for WHV_CACHE_TYPE {} |
| impl ::core::clone::Clone for WHV_CACHE_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_CACHE_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_CACHE_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_CACHE_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_CACHE_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_CAPABILITY_CODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeHypervisorPresent: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeFeatures: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeExtendedVmExits: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeExceptionExitBitmap: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeX64MsrExitBitmap: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeGpaRangePopulateFlags: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(5i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeSchedulerFeatures: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(6i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeProcessorVendor: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4096i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeProcessorFeatures: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4097i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeProcessorClFlushSize: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4098i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeProcessorXsaveFeatures: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4099i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeProcessorClockFrequency: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4100i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeInterruptClockFrequency: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4101i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeProcessorFeaturesBanks: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4102i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeProcessorFrequencyCap: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4103i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeSyntheticProcessorFeaturesBanks: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4104i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCapabilityCodeProcessorPerfmonFeatures: WHV_CAPABILITY_CODE = WHV_CAPABILITY_CODE(4105i32); |
| impl ::core::marker::Copy for WHV_CAPABILITY_CODE {} |
| impl ::core::clone::Clone for WHV_CAPABILITY_CODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_CAPABILITY_CODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_CAPABILITY_CODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_CAPABILITY_CODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_CAPABILITY_CODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_CREATE_VPCI_DEVICE_FLAGS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCreateVpciDeviceFlagNone: WHV_CREATE_VPCI_DEVICE_FLAGS = WHV_CREATE_VPCI_DEVICE_FLAGS(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCreateVpciDeviceFlagPhysicallyBacked: WHV_CREATE_VPCI_DEVICE_FLAGS = WHV_CREATE_VPCI_DEVICE_FLAGS(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvCreateVpciDeviceFlagUseLogicalInterrupts: WHV_CREATE_VPCI_DEVICE_FLAGS = WHV_CREATE_VPCI_DEVICE_FLAGS(2i32); |
| impl ::core::marker::Copy for WHV_CREATE_VPCI_DEVICE_FLAGS {} |
| impl ::core::clone::Clone for WHV_CREATE_VPCI_DEVICE_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_CREATE_VPCI_DEVICE_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_CREATE_VPCI_DEVICE_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_CREATE_VPCI_DEVICE_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_CREATE_VPCI_DEVICE_FLAGS").field(&self.0).finish() |
| } |
| } |
| impl WHV_CREATE_VPCI_DEVICE_FLAGS { |
| pub const fn contains(&self, other: Self) -> bool { |
| self.0 & other.0 == other.0 |
| } |
| } |
| impl ::core::ops::BitOr for WHV_CREATE_VPCI_DEVICE_FLAGS { |
| type Output = Self; |
| fn bitor(self, other: Self) -> Self { |
| Self(self.0 | other.0) |
| } |
| } |
| impl ::core::ops::BitAnd for WHV_CREATE_VPCI_DEVICE_FLAGS { |
| type Output = Self; |
| fn bitand(self, other: Self) -> Self { |
| Self(self.0 & other.0) |
| } |
| } |
| impl ::core::ops::BitOrAssign for WHV_CREATE_VPCI_DEVICE_FLAGS { |
| fn bitor_assign(&mut self, other: Self) { |
| self.0.bitor_assign(other.0) |
| } |
| } |
| impl ::core::ops::BitAndAssign for WHV_CREATE_VPCI_DEVICE_FLAGS { |
| fn bitand_assign(&mut self, other: Self) { |
| self.0.bitand_assign(other.0) |
| } |
| } |
| impl ::core::ops::Not for WHV_CREATE_VPCI_DEVICE_FLAGS { |
| type Output = Self; |
| fn not(self) -> Self { |
| Self(self.0.not()) |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_EXCEPTION_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeDivideErrorFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeDebugTrapOrFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeBreakpointTrap: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeOverflowTrap: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeBoundRangeFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(5i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeInvalidOpcodeFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(6i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeDeviceNotAvailableFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(7i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeDoubleFaultAbort: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(8i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeInvalidTaskStateSegmentFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(10i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeSegmentNotPresentFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(11i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeStackFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(12i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeGeneralProtectionFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(13i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypePageFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(14i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeFloatingPointErrorFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(16i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeAlignmentCheckFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(17i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeMachineCheckAbort: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(18i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ExceptionTypeSimdFloatingPointFault: WHV_EXCEPTION_TYPE = WHV_EXCEPTION_TYPE(19i32); |
| impl ::core::marker::Copy for WHV_EXCEPTION_TYPE {} |
| impl ::core::clone::Clone for WHV_EXCEPTION_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_EXCEPTION_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_EXCEPTION_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_EXCEPTION_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_EXCEPTION_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_INTERRUPT_DESTINATION_MODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptDestinationModePhysical: WHV_INTERRUPT_DESTINATION_MODE = WHV_INTERRUPT_DESTINATION_MODE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptDestinationModeLogical: WHV_INTERRUPT_DESTINATION_MODE = WHV_INTERRUPT_DESTINATION_MODE(1i32); |
| impl ::core::marker::Copy for WHV_INTERRUPT_DESTINATION_MODE {} |
| impl ::core::clone::Clone for WHV_INTERRUPT_DESTINATION_MODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_INTERRUPT_DESTINATION_MODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_INTERRUPT_DESTINATION_MODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_INTERRUPT_DESTINATION_MODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_INTERRUPT_DESTINATION_MODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_INTERRUPT_TRIGGER_MODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptTriggerModeEdge: WHV_INTERRUPT_TRIGGER_MODE = WHV_INTERRUPT_TRIGGER_MODE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptTriggerModeLevel: WHV_INTERRUPT_TRIGGER_MODE = WHV_INTERRUPT_TRIGGER_MODE(1i32); |
| impl ::core::marker::Copy for WHV_INTERRUPT_TRIGGER_MODE {} |
| impl ::core::clone::Clone for WHV_INTERRUPT_TRIGGER_MODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_INTERRUPT_TRIGGER_MODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_INTERRUPT_TRIGGER_MODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_INTERRUPT_TRIGGER_MODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_INTERRUPT_TRIGGER_MODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_INTERRUPT_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptTypeFixed: WHV_INTERRUPT_TYPE = WHV_INTERRUPT_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptTypeLowestPriority: WHV_INTERRUPT_TYPE = WHV_INTERRUPT_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptTypeNmi: WHV_INTERRUPT_TYPE = WHV_INTERRUPT_TYPE(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptTypeInit: WHV_INTERRUPT_TYPE = WHV_INTERRUPT_TYPE(5i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptTypeSipi: WHV_INTERRUPT_TYPE = WHV_INTERRUPT_TYPE(6i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64InterruptTypeLocalInt1: WHV_INTERRUPT_TYPE = WHV_INTERRUPT_TYPE(9i32); |
| impl ::core::marker::Copy for WHV_INTERRUPT_TYPE {} |
| impl ::core::clone::Clone for WHV_INTERRUPT_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_INTERRUPT_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_INTERRUPT_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_INTERRUPT_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_INTERRUPT_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_MAP_GPA_RANGE_FLAGS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMapGpaRangeFlagNone: WHV_MAP_GPA_RANGE_FLAGS = WHV_MAP_GPA_RANGE_FLAGS(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMapGpaRangeFlagRead: WHV_MAP_GPA_RANGE_FLAGS = WHV_MAP_GPA_RANGE_FLAGS(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMapGpaRangeFlagWrite: WHV_MAP_GPA_RANGE_FLAGS = WHV_MAP_GPA_RANGE_FLAGS(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMapGpaRangeFlagExecute: WHV_MAP_GPA_RANGE_FLAGS = WHV_MAP_GPA_RANGE_FLAGS(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMapGpaRangeFlagTrackDirtyPages: WHV_MAP_GPA_RANGE_FLAGS = WHV_MAP_GPA_RANGE_FLAGS(8i32); |
| impl ::core::marker::Copy for WHV_MAP_GPA_RANGE_FLAGS {} |
| impl ::core::clone::Clone for WHV_MAP_GPA_RANGE_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_MAP_GPA_RANGE_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_MAP_GPA_RANGE_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_MAP_GPA_RANGE_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_MAP_GPA_RANGE_FLAGS").field(&self.0).finish() |
| } |
| } |
| impl WHV_MAP_GPA_RANGE_FLAGS { |
| pub const fn contains(&self, other: Self) -> bool { |
| self.0 & other.0 == other.0 |
| } |
| } |
| impl ::core::ops::BitOr for WHV_MAP_GPA_RANGE_FLAGS { |
| type Output = Self; |
| fn bitor(self, other: Self) -> Self { |
| Self(self.0 | other.0) |
| } |
| } |
| impl ::core::ops::BitAnd for WHV_MAP_GPA_RANGE_FLAGS { |
| type Output = Self; |
| fn bitand(self, other: Self) -> Self { |
| Self(self.0 & other.0) |
| } |
| } |
| impl ::core::ops::BitOrAssign for WHV_MAP_GPA_RANGE_FLAGS { |
| fn bitor_assign(&mut self, other: Self) { |
| self.0.bitor_assign(other.0) |
| } |
| } |
| impl ::core::ops::BitAndAssign for WHV_MAP_GPA_RANGE_FLAGS { |
| fn bitand_assign(&mut self, other: Self) { |
| self.0.bitand_assign(other.0) |
| } |
| } |
| impl ::core::ops::Not for WHV_MAP_GPA_RANGE_FLAGS { |
| type Output = Self; |
| fn not(self) -> Self { |
| Self(self.0.not()) |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_MEMORY_ACCESS_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMemoryAccessRead: WHV_MEMORY_ACCESS_TYPE = WHV_MEMORY_ACCESS_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMemoryAccessWrite: WHV_MEMORY_ACCESS_TYPE = WHV_MEMORY_ACCESS_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMemoryAccessExecute: WHV_MEMORY_ACCESS_TYPE = WHV_MEMORY_ACCESS_TYPE(2i32); |
| impl ::core::marker::Copy for WHV_MEMORY_ACCESS_TYPE {} |
| impl ::core::clone::Clone for WHV_MEMORY_ACCESS_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_MEMORY_ACCESS_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_MEMORY_ACCESS_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_MEMORY_ACCESS_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_MEMORY_ACCESS_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_MSR_ACTION(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMsrActionArchitectureDefault: WHV_MSR_ACTION = WHV_MSR_ACTION(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMsrActionIgnoreWriteReadZero: WHV_MSR_ACTION = WHV_MSR_ACTION(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvMsrActionExit: WHV_MSR_ACTION = WHV_MSR_ACTION(2i32); |
| impl ::core::marker::Copy for WHV_MSR_ACTION {} |
| impl ::core::clone::Clone for WHV_MSR_ACTION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_MSR_ACTION { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_MSR_ACTION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_MSR_ACTION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_MSR_ACTION").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_NOTIFICATION_PORT_PROPERTY_CODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvNotificationPortPropertyPreferredTargetVp: WHV_NOTIFICATION_PORT_PROPERTY_CODE = WHV_NOTIFICATION_PORT_PROPERTY_CODE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvNotificationPortPropertyPreferredTargetDuration: WHV_NOTIFICATION_PORT_PROPERTY_CODE = WHV_NOTIFICATION_PORT_PROPERTY_CODE(5i32); |
| impl ::core::marker::Copy for WHV_NOTIFICATION_PORT_PROPERTY_CODE {} |
| impl ::core::clone::Clone for WHV_NOTIFICATION_PORT_PROPERTY_CODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_NOTIFICATION_PORT_PROPERTY_CODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_NOTIFICATION_PORT_PROPERTY_CODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_NOTIFICATION_PORT_PROPERTY_CODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_NOTIFICATION_PORT_PROPERTY_CODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_NOTIFICATION_PORT_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvNotificationPortTypeEvent: WHV_NOTIFICATION_PORT_TYPE = WHV_NOTIFICATION_PORT_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvNotificationPortTypeDoorbell: WHV_NOTIFICATION_PORT_TYPE = WHV_NOTIFICATION_PORT_TYPE(4i32); |
| impl ::core::marker::Copy for WHV_NOTIFICATION_PORT_TYPE {} |
| impl ::core::clone::Clone for WHV_NOTIFICATION_PORT_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_NOTIFICATION_PORT_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_NOTIFICATION_PORT_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_NOTIFICATION_PORT_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_NOTIFICATION_PORT_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_PARTITION_COUNTER_SET(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionCounterSetMemory: WHV_PARTITION_COUNTER_SET = WHV_PARTITION_COUNTER_SET(0i32); |
| impl ::core::marker::Copy for WHV_PARTITION_COUNTER_SET {} |
| impl ::core::clone::Clone for WHV_PARTITION_COUNTER_SET { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_PARTITION_COUNTER_SET { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PARTITION_COUNTER_SET { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_PARTITION_COUNTER_SET { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_PARTITION_COUNTER_SET").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_PARTITION_PROPERTY_CODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeExtendedVmExits: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeExceptionExitBitmap: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeSeparateSecurityDomain: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeNestedVirtualization: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeX64MsrExitBitmap: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(5i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodePrimaryNumaNode: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(6i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeCpuReserve: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(7i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeCpuCap: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(8i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeCpuWeight: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(9i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeCpuGroupId: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(10i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeProcessorFrequencyCap: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(11i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeAllowDeviceAssignment: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(12i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeDisableSmt: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(13i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeProcessorFeatures: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4097i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeProcessorClFlushSize: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4098i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeCpuidExitList: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4099i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeCpuidResultList: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4100i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeLocalApicEmulationMode: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4101i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeProcessorXsaveFeatures: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4102i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeProcessorClockFrequency: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4103i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeInterruptClockFrequency: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4104i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeApicRemoteReadSupport: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4105i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeProcessorFeaturesBanks: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4106i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeReferenceTime: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4107i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeSyntheticProcessorFeaturesBanks: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4108i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeCpuidResultList2: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4109i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeProcessorPerfmonFeatures: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4110i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeMsrActionList: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4111i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeUnimplementedMsrAction: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(4112i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvPartitionPropertyCodeProcessorCount: WHV_PARTITION_PROPERTY_CODE = WHV_PARTITION_PROPERTY_CODE(8191i32); |
| impl ::core::marker::Copy for WHV_PARTITION_PROPERTY_CODE {} |
| impl ::core::clone::Clone for WHV_PARTITION_PROPERTY_CODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_PARTITION_PROPERTY_CODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PARTITION_PROPERTY_CODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_PARTITION_PROPERTY_CODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_PARTITION_PROPERTY_CODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_PROCESSOR_COUNTER_SET(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvProcessorCounterSetRuntime: WHV_PROCESSOR_COUNTER_SET = WHV_PROCESSOR_COUNTER_SET(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvProcessorCounterSetIntercepts: WHV_PROCESSOR_COUNTER_SET = WHV_PROCESSOR_COUNTER_SET(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvProcessorCounterSetEvents: WHV_PROCESSOR_COUNTER_SET = WHV_PROCESSOR_COUNTER_SET(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvProcessorCounterSetApic: WHV_PROCESSOR_COUNTER_SET = WHV_PROCESSOR_COUNTER_SET(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvProcessorCounterSetSyntheticFeatures: WHV_PROCESSOR_COUNTER_SET = WHV_PROCESSOR_COUNTER_SET(4i32); |
| impl ::core::marker::Copy for WHV_PROCESSOR_COUNTER_SET {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_COUNTER_SET { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_PROCESSOR_COUNTER_SET { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_COUNTER_SET { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_COUNTER_SET { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_PROCESSOR_COUNTER_SET").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_PROCESSOR_VENDOR(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvProcessorVendorAmd: WHV_PROCESSOR_VENDOR = WHV_PROCESSOR_VENDOR(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvProcessorVendorIntel: WHV_PROCESSOR_VENDOR = WHV_PROCESSOR_VENDOR(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvProcessorVendorHygon: WHV_PROCESSOR_VENDOR = WHV_PROCESSOR_VENDOR(2i32); |
| impl ::core::marker::Copy for WHV_PROCESSOR_VENDOR {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_VENDOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_PROCESSOR_VENDOR { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_VENDOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_VENDOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_PROCESSOR_VENDOR").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_REGISTER_NAME(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRax: WHV_REGISTER_NAME = WHV_REGISTER_NAME(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRcx: WHV_REGISTER_NAME = WHV_REGISTER_NAME(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRdx: WHV_REGISTER_NAME = WHV_REGISTER_NAME(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRbx: WHV_REGISTER_NAME = WHV_REGISTER_NAME(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRsp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRbp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(5i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRsi: WHV_REGISTER_NAME = WHV_REGISTER_NAME(6i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRdi: WHV_REGISTER_NAME = WHV_REGISTER_NAME(7i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterR8: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterR9: WHV_REGISTER_NAME = WHV_REGISTER_NAME(9i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterR10: WHV_REGISTER_NAME = WHV_REGISTER_NAME(10i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterR11: WHV_REGISTER_NAME = WHV_REGISTER_NAME(11i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterR12: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterR13: WHV_REGISTER_NAME = WHV_REGISTER_NAME(13i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterR14: WHV_REGISTER_NAME = WHV_REGISTER_NAME(14i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterR15: WHV_REGISTER_NAME = WHV_REGISTER_NAME(15i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRip: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterRflags: WHV_REGISTER_NAME = WHV_REGISTER_NAME(17i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterEs: WHV_REGISTER_NAME = WHV_REGISTER_NAME(18i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterCs: WHV_REGISTER_NAME = WHV_REGISTER_NAME(19i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterSs: WHV_REGISTER_NAME = WHV_REGISTER_NAME(20i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterDs: WHV_REGISTER_NAME = WHV_REGISTER_NAME(21i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFs: WHV_REGISTER_NAME = WHV_REGISTER_NAME(22i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterGs: WHV_REGISTER_NAME = WHV_REGISTER_NAME(23i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterLdtr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(24i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterTr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(25i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterIdtr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(26i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterGdtr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(27i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterCr0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(28i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterCr2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(29i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterCr3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(30i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterCr4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(31i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterCr8: WHV_REGISTER_NAME = WHV_REGISTER_NAME(32i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterDr0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(33i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterDr1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(34i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterDr2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(35i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterDr3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(36i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterDr6: WHV_REGISTER_NAME = WHV_REGISTER_NAME(37i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterDr7: WHV_REGISTER_NAME = WHV_REGISTER_NAME(38i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXCr0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(39i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterVirtualCr0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(40i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterVirtualCr3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(41i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterVirtualCr4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(42i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterVirtualCr8: WHV_REGISTER_NAME = WHV_REGISTER_NAME(43i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4096i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4097i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4098i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4099i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4100i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm5: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4101i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm6: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4102i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm7: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4103i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm8: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4104i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm9: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4105i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm10: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4106i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm11: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4107i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm12: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4108i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm13: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4109i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm14: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4110i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmm15: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4111i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFpMmx0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4112i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFpMmx1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4113i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFpMmx2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4114i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFpMmx3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4115i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFpMmx4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4116i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFpMmx5: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4117i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFpMmx6: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4118i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFpMmx7: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4119i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterFpControlStatus: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4120i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXmmControlStatus: WHV_REGISTER_NAME = WHV_REGISTER_NAME(4121i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterTsc: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8192i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterEfer: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8193i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterKernelGsBase: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8194i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicBase: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8195i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterPat: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8196i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterSysenterCs: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8197i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterSysenterEip: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8198i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterSysenterEsp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8199i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterStar: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8200i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterLstar: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8201i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterCstar: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8202i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterSfmask: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8203i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterInitialApicId: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8204i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrCap: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8205i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrDefType: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8206i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8208i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8209i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8210i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8211i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8212i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase5: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8213i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase6: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8214i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase7: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8215i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase8: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8216i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBase9: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8217i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBaseA: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8218i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBaseB: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8219i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBaseC: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8220i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBaseD: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8221i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBaseE: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8222i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysBaseF: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8223i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8256i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8257i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8258i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8259i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8260i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask5: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8261i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask6: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8262i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask7: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8263i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask8: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8264i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMask9: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8265i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMaskA: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8266i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMaskB: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8267i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMaskC: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8268i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMaskD: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8269i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMaskE: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8270i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrPhysMaskF: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8271i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix64k00000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8304i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix16k80000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8305i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix16kA0000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8306i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix4kC0000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8307i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix4kC8000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8308i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix4kD0000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8309i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix4kD8000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8310i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix4kE0000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8311i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix4kE8000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8312i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix4kF0000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8313i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMsrMtrrFix4kF8000: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8314i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterTscAux: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8315i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterBndcfgs: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8316i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterMCount: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8318i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterACount: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8319i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterSpecCtrl: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8324i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterPredCmd: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8325i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterTscVirtualOffset: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8327i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterTsxCtrl: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8328i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXss: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8331i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterUCet: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8332i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterSCet: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8333i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterSsp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8334i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterPl0Ssp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8335i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterPl1Ssp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8336i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterPl2Ssp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8337i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterPl3Ssp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8338i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterInterruptSspTableAddr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8339i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterTscDeadline: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8341i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterTscAdjust: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8342i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterUmwaitControl: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8344i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXfd: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8345i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterXfdErr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(8346i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicId: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12290i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicVersion: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12291i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicTpr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12296i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicPpr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12298i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicEoi: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12299i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicLdr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12301i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicSpurious: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12303i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIsr0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12304i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIsr1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12305i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIsr2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12306i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIsr3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12307i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIsr4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12308i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIsr5: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12309i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIsr6: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12310i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIsr7: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12311i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicTmr0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12312i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicTmr1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12313i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicTmr2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12314i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicTmr3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12315i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicTmr4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12316i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicTmr5: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12317i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicTmr6: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12318i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicTmr7: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12319i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIrr0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12320i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIrr1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12321i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIrr2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12322i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIrr3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12323i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIrr4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12324i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIrr5: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12325i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIrr6: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12326i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIrr7: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12327i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicEse: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12328i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicIcr: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12336i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicLvtTimer: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12338i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicLvtThermal: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12339i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicLvtPerfmon: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12340i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicLvtLint0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12341i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicLvtLint1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12342i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicLvtError: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12343i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicInitCount: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12344i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicCurrentCount: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12345i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicDivide: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12350i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterApicSelfIpi: WHV_REGISTER_NAME = WHV_REGISTER_NAME(12351i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint0: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16384i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint1: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16385i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint2: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16386i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint3: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16387i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint4: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16388i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint5: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16389i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint6: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16390i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint7: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16391i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint8: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16392i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint9: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16393i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint10: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16394i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint11: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16395i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint12: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16396i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint13: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16397i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint14: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16398i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSint15: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16399i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterScontrol: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16400i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSversion: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16401i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSiefp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16402i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterSimp: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16403i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterEom: WHV_REGISTER_NAME = WHV_REGISTER_NAME(16404i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterVpRuntime: WHV_REGISTER_NAME = WHV_REGISTER_NAME(20480i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterHypercall: WHV_REGISTER_NAME = WHV_REGISTER_NAME(20481i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterGuestOsId: WHV_REGISTER_NAME = WHV_REGISTER_NAME(20482i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterVpAssistPage: WHV_REGISTER_NAME = WHV_REGISTER_NAME(20499i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterReferenceTsc: WHV_REGISTER_NAME = WHV_REGISTER_NAME(20503i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterReferenceTscSequence: WHV_REGISTER_NAME = WHV_REGISTER_NAME(20506i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterPendingInterruption: WHV_REGISTER_NAME = WHV_REGISTER_NAME(-2147483648i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterInterruptState: WHV_REGISTER_NAME = WHV_REGISTER_NAME(-2147483647i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterPendingEvent: WHV_REGISTER_NAME = WHV_REGISTER_NAME(-2147483646i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterDeliverabilityNotifications: WHV_REGISTER_NAME = WHV_REGISTER_NAME(-2147483644i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRegisterInternalActivityState: WHV_REGISTER_NAME = WHV_REGISTER_NAME(-2147483643i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64RegisterPendingDebugException: WHV_REGISTER_NAME = WHV_REGISTER_NAME(-2147483642i32); |
| impl ::core::marker::Copy for WHV_REGISTER_NAME {} |
| impl ::core::clone::Clone for WHV_REGISTER_NAME { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_REGISTER_NAME { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_REGISTER_NAME { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_REGISTER_NAME { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_REGISTER_NAME").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_RUN_VP_CANCEL_REASON(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpCancelReasonUser: WHV_RUN_VP_CANCEL_REASON = WHV_RUN_VP_CANCEL_REASON(0i32); |
| impl ::core::marker::Copy for WHV_RUN_VP_CANCEL_REASON {} |
| impl ::core::clone::Clone for WHV_RUN_VP_CANCEL_REASON { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_RUN_VP_CANCEL_REASON { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_RUN_VP_CANCEL_REASON { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_RUN_VP_CANCEL_REASON { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_RUN_VP_CANCEL_REASON").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_RUN_VP_EXIT_REASON(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonNone: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonMemoryAccess: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64IoPortAccess: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonUnrecoverableException: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonInvalidVpRegisterValue: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(5i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonUnsupportedFeature: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(6i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64InterruptWindow: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(7i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64Halt: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(8i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64ApicEoi: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(9i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonSynicSintDeliverable: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(10i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64MsrAccess: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(4096i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64Cpuid: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(4097i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonException: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(4098i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64Rdtsc: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(4099i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64ApicSmiTrap: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(4100i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonHypercall: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(4101i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64ApicInitSipiTrap: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(4102i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonX64ApicWriteTrap: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(4103i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvRunVpExitReasonCanceled: WHV_RUN_VP_EXIT_REASON = WHV_RUN_VP_EXIT_REASON(8193i32); |
| impl ::core::marker::Copy for WHV_RUN_VP_EXIT_REASON {} |
| impl ::core::clone::Clone for WHV_RUN_VP_EXIT_REASON { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_RUN_VP_EXIT_REASON { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_RUN_VP_EXIT_REASON { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_RUN_VP_EXIT_REASON { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_RUN_VP_EXIT_REASON").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_TRANSLATE_GVA_FLAGS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaFlagNone: WHV_TRANSLATE_GVA_FLAGS = WHV_TRANSLATE_GVA_FLAGS(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaFlagValidateRead: WHV_TRANSLATE_GVA_FLAGS = WHV_TRANSLATE_GVA_FLAGS(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaFlagValidateWrite: WHV_TRANSLATE_GVA_FLAGS = WHV_TRANSLATE_GVA_FLAGS(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaFlagValidateExecute: WHV_TRANSLATE_GVA_FLAGS = WHV_TRANSLATE_GVA_FLAGS(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaFlagPrivilegeExempt: WHV_TRANSLATE_GVA_FLAGS = WHV_TRANSLATE_GVA_FLAGS(8i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaFlagSetPageTableBits: WHV_TRANSLATE_GVA_FLAGS = WHV_TRANSLATE_GVA_FLAGS(16i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaFlagEnforceSmap: WHV_TRANSLATE_GVA_FLAGS = WHV_TRANSLATE_GVA_FLAGS(256i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaFlagOverrideSmap: WHV_TRANSLATE_GVA_FLAGS = WHV_TRANSLATE_GVA_FLAGS(512i32); |
| impl ::core::marker::Copy for WHV_TRANSLATE_GVA_FLAGS {} |
| impl ::core::clone::Clone for WHV_TRANSLATE_GVA_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_TRANSLATE_GVA_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_TRANSLATE_GVA_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_TRANSLATE_GVA_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_TRANSLATE_GVA_FLAGS").field(&self.0).finish() |
| } |
| } |
| impl WHV_TRANSLATE_GVA_FLAGS { |
| pub const fn contains(&self, other: Self) -> bool { |
| self.0 & other.0 == other.0 |
| } |
| } |
| impl ::core::ops::BitOr for WHV_TRANSLATE_GVA_FLAGS { |
| type Output = Self; |
| fn bitor(self, other: Self) -> Self { |
| Self(self.0 | other.0) |
| } |
| } |
| impl ::core::ops::BitAnd for WHV_TRANSLATE_GVA_FLAGS { |
| type Output = Self; |
| fn bitand(self, other: Self) -> Self { |
| Self(self.0 & other.0) |
| } |
| } |
| impl ::core::ops::BitOrAssign for WHV_TRANSLATE_GVA_FLAGS { |
| fn bitor_assign(&mut self, other: Self) { |
| self.0.bitor_assign(other.0) |
| } |
| } |
| impl ::core::ops::BitAndAssign for WHV_TRANSLATE_GVA_FLAGS { |
| fn bitand_assign(&mut self, other: Self) { |
| self.0.bitand_assign(other.0) |
| } |
| } |
| impl ::core::ops::Not for WHV_TRANSLATE_GVA_FLAGS { |
| type Output = Self; |
| fn not(self) -> Self { |
| Self(self.0.not()) |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_TRANSLATE_GVA_RESULT_CODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaResultSuccess: WHV_TRANSLATE_GVA_RESULT_CODE = WHV_TRANSLATE_GVA_RESULT_CODE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaResultPageNotPresent: WHV_TRANSLATE_GVA_RESULT_CODE = WHV_TRANSLATE_GVA_RESULT_CODE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaResultPrivilegeViolation: WHV_TRANSLATE_GVA_RESULT_CODE = WHV_TRANSLATE_GVA_RESULT_CODE(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaResultInvalidPageTableFlags: WHV_TRANSLATE_GVA_RESULT_CODE = WHV_TRANSLATE_GVA_RESULT_CODE(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaResultGpaUnmapped: WHV_TRANSLATE_GVA_RESULT_CODE = WHV_TRANSLATE_GVA_RESULT_CODE(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaResultGpaNoReadAccess: WHV_TRANSLATE_GVA_RESULT_CODE = WHV_TRANSLATE_GVA_RESULT_CODE(5i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaResultGpaNoWriteAccess: WHV_TRANSLATE_GVA_RESULT_CODE = WHV_TRANSLATE_GVA_RESULT_CODE(6i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaResultGpaIllegalOverlayAccess: WHV_TRANSLATE_GVA_RESULT_CODE = WHV_TRANSLATE_GVA_RESULT_CODE(7i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTranslateGvaResultIntercept: WHV_TRANSLATE_GVA_RESULT_CODE = WHV_TRANSLATE_GVA_RESULT_CODE(8i32); |
| impl ::core::marker::Copy for WHV_TRANSLATE_GVA_RESULT_CODE {} |
| impl ::core::clone::Clone for WHV_TRANSLATE_GVA_RESULT_CODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_TRANSLATE_GVA_RESULT_CODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_TRANSLATE_GVA_RESULT_CODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_TRANSLATE_GVA_RESULT_CODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_TRANSLATE_GVA_RESULT_CODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_TRIGGER_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTriggerTypeInterrupt: WHV_TRIGGER_TYPE = WHV_TRIGGER_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTriggerTypeSynicEvent: WHV_TRIGGER_TYPE = WHV_TRIGGER_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvTriggerTypeDeviceInterrupt: WHV_TRIGGER_TYPE = WHV_TRIGGER_TYPE(2i32); |
| impl ::core::marker::Copy for WHV_TRIGGER_TYPE {} |
| impl ::core::clone::Clone for WHV_TRIGGER_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_TRIGGER_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_TRIGGER_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_TRIGGER_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_TRIGGER_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVirtualProcessorPropertyCodeNumaNode: WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE = WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE(0i32); |
| impl ::core::marker::Copy for WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE {} |
| impl ::core::clone::Clone for WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_VIRTUAL_PROCESSOR_STATE_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVirtualProcessorStateTypeSynicMessagePage: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = WHV_VIRTUAL_PROCESSOR_STATE_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVirtualProcessorStateTypeSynicEventFlagPage: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = WHV_VIRTUAL_PROCESSOR_STATE_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVirtualProcessorStateTypeSynicTimerState: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = WHV_VIRTUAL_PROCESSOR_STATE_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVirtualProcessorStateTypeInterruptControllerState2: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = WHV_VIRTUAL_PROCESSOR_STATE_TYPE(4096i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVirtualProcessorStateTypeXsaveState: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = WHV_VIRTUAL_PROCESSOR_STATE_TYPE(4097i32); |
| impl ::core::marker::Copy for WHV_VIRTUAL_PROCESSOR_STATE_TYPE {} |
| impl ::core::clone::Clone for WHV_VIRTUAL_PROCESSOR_STATE_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_VIRTUAL_PROCESSOR_STATE_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VIRTUAL_PROCESSOR_STATE_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_VIRTUAL_PROCESSOR_STATE_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_VIRTUAL_PROCESSOR_STATE_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_VPCI_DEVICE_NOTIFICATION_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciDeviceNotificationUndefined: WHV_VPCI_DEVICE_NOTIFICATION_TYPE = WHV_VPCI_DEVICE_NOTIFICATION_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciDeviceNotificationMmioRemapping: WHV_VPCI_DEVICE_NOTIFICATION_TYPE = WHV_VPCI_DEVICE_NOTIFICATION_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciDeviceNotificationSurpriseRemoval: WHV_VPCI_DEVICE_NOTIFICATION_TYPE = WHV_VPCI_DEVICE_NOTIFICATION_TYPE(2i32); |
| impl ::core::marker::Copy for WHV_VPCI_DEVICE_NOTIFICATION_TYPE {} |
| impl ::core::clone::Clone for WHV_VPCI_DEVICE_NOTIFICATION_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_VPCI_DEVICE_NOTIFICATION_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_DEVICE_NOTIFICATION_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_DEVICE_NOTIFICATION_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_VPCI_DEVICE_NOTIFICATION_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_VPCI_DEVICE_PROPERTY_CODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciDevicePropertyCodeUndefined: WHV_VPCI_DEVICE_PROPERTY_CODE = WHV_VPCI_DEVICE_PROPERTY_CODE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciDevicePropertyCodeHardwareIDs: WHV_VPCI_DEVICE_PROPERTY_CODE = WHV_VPCI_DEVICE_PROPERTY_CODE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciDevicePropertyCodeProbedBARs: WHV_VPCI_DEVICE_PROPERTY_CODE = WHV_VPCI_DEVICE_PROPERTY_CODE(2i32); |
| impl ::core::marker::Copy for WHV_VPCI_DEVICE_PROPERTY_CODE {} |
| impl ::core::clone::Clone for WHV_VPCI_DEVICE_PROPERTY_CODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_VPCI_DEVICE_PROPERTY_CODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_DEVICE_PROPERTY_CODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_DEVICE_PROPERTY_CODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_VPCI_DEVICE_PROPERTY_CODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_VPCI_DEVICE_REGISTER_SPACE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciConfigSpace: WHV_VPCI_DEVICE_REGISTER_SPACE = WHV_VPCI_DEVICE_REGISTER_SPACE(-1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciBar0: WHV_VPCI_DEVICE_REGISTER_SPACE = WHV_VPCI_DEVICE_REGISTER_SPACE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciBar1: WHV_VPCI_DEVICE_REGISTER_SPACE = WHV_VPCI_DEVICE_REGISTER_SPACE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciBar2: WHV_VPCI_DEVICE_REGISTER_SPACE = WHV_VPCI_DEVICE_REGISTER_SPACE(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciBar3: WHV_VPCI_DEVICE_REGISTER_SPACE = WHV_VPCI_DEVICE_REGISTER_SPACE(3i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciBar4: WHV_VPCI_DEVICE_REGISTER_SPACE = WHV_VPCI_DEVICE_REGISTER_SPACE(4i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciBar5: WHV_VPCI_DEVICE_REGISTER_SPACE = WHV_VPCI_DEVICE_REGISTER_SPACE(5i32); |
| impl ::core::marker::Copy for WHV_VPCI_DEVICE_REGISTER_SPACE {} |
| impl ::core::clone::Clone for WHV_VPCI_DEVICE_REGISTER_SPACE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_VPCI_DEVICE_REGISTER_SPACE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_DEVICE_REGISTER_SPACE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_DEVICE_REGISTER_SPACE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_VPCI_DEVICE_REGISTER_SPACE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_VPCI_INTERRUPT_TARGET_FLAGS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciInterruptTargetFlagNone: WHV_VPCI_INTERRUPT_TARGET_FLAGS = WHV_VPCI_INTERRUPT_TARGET_FLAGS(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciInterruptTargetFlagMulticast: WHV_VPCI_INTERRUPT_TARGET_FLAGS = WHV_VPCI_INTERRUPT_TARGET_FLAGS(1i32); |
| impl ::core::marker::Copy for WHV_VPCI_INTERRUPT_TARGET_FLAGS {} |
| impl ::core::clone::Clone for WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_VPCI_INTERRUPT_TARGET_FLAGS").field(&self.0).finish() |
| } |
| } |
| impl WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| pub const fn contains(&self, other: Self) -> bool { |
| self.0 & other.0 == other.0 |
| } |
| } |
| impl ::core::ops::BitOr for WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| type Output = Self; |
| fn bitor(self, other: Self) -> Self { |
| Self(self.0 | other.0) |
| } |
| } |
| impl ::core::ops::BitAnd for WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| type Output = Self; |
| fn bitand(self, other: Self) -> Self { |
| Self(self.0 & other.0) |
| } |
| } |
| impl ::core::ops::BitOrAssign for WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| fn bitor_assign(&mut self, other: Self) { |
| self.0.bitor_assign(other.0) |
| } |
| } |
| impl ::core::ops::BitAndAssign for WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| fn bitand_assign(&mut self, other: Self) { |
| self.0.bitand_assign(other.0) |
| } |
| } |
| impl ::core::ops::Not for WHV_VPCI_INTERRUPT_TARGET_FLAGS { |
| type Output = Self; |
| fn not(self) -> Self { |
| Self(self.0.not()) |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_VPCI_MMIO_RANGE_FLAGS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciMmioRangeFlagReadAccess: WHV_VPCI_MMIO_RANGE_FLAGS = WHV_VPCI_MMIO_RANGE_FLAGS(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvVpciMmioRangeFlagWriteAccess: WHV_VPCI_MMIO_RANGE_FLAGS = WHV_VPCI_MMIO_RANGE_FLAGS(2i32); |
| impl ::core::marker::Copy for WHV_VPCI_MMIO_RANGE_FLAGS {} |
| impl ::core::clone::Clone for WHV_VPCI_MMIO_RANGE_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_VPCI_MMIO_RANGE_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_MMIO_RANGE_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_MMIO_RANGE_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_VPCI_MMIO_RANGE_FLAGS").field(&self.0).finish() |
| } |
| } |
| impl WHV_VPCI_MMIO_RANGE_FLAGS { |
| pub const fn contains(&self, other: Self) -> bool { |
| self.0 & other.0 == other.0 |
| } |
| } |
| impl ::core::ops::BitOr for WHV_VPCI_MMIO_RANGE_FLAGS { |
| type Output = Self; |
| fn bitor(self, other: Self) -> Self { |
| Self(self.0 | other.0) |
| } |
| } |
| impl ::core::ops::BitAnd for WHV_VPCI_MMIO_RANGE_FLAGS { |
| type Output = Self; |
| fn bitand(self, other: Self) -> Self { |
| Self(self.0 & other.0) |
| } |
| } |
| impl ::core::ops::BitOrAssign for WHV_VPCI_MMIO_RANGE_FLAGS { |
| fn bitor_assign(&mut self, other: Self) { |
| self.0.bitor_assign(other.0) |
| } |
| } |
| impl ::core::ops::BitAndAssign for WHV_VPCI_MMIO_RANGE_FLAGS { |
| fn bitand_assign(&mut self, other: Self) { |
| self.0.bitand_assign(other.0) |
| } |
| } |
| impl ::core::ops::Not for WHV_VPCI_MMIO_RANGE_FLAGS { |
| type Output = Self; |
| fn not(self) -> Self { |
| Self(self.0.not()) |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_X64_APIC_WRITE_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ApicWriteTypeLdr: WHV_X64_APIC_WRITE_TYPE = WHV_X64_APIC_WRITE_TYPE(208i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ApicWriteTypeDfr: WHV_X64_APIC_WRITE_TYPE = WHV_X64_APIC_WRITE_TYPE(224i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ApicWriteTypeSvr: WHV_X64_APIC_WRITE_TYPE = WHV_X64_APIC_WRITE_TYPE(240i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ApicWriteTypeLint0: WHV_X64_APIC_WRITE_TYPE = WHV_X64_APIC_WRITE_TYPE(848i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64ApicWriteTypeLint1: WHV_X64_APIC_WRITE_TYPE = WHV_X64_APIC_WRITE_TYPE(864i32); |
| impl ::core::marker::Copy for WHV_X64_APIC_WRITE_TYPE {} |
| impl ::core::clone::Clone for WHV_X64_APIC_WRITE_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_X64_APIC_WRITE_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_APIC_WRITE_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_X64_APIC_WRITE_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_X64_APIC_WRITE_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_X64_CPUID_RESULT2_FLAGS(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64CpuidResult2FlagSubleafSpecific: WHV_X64_CPUID_RESULT2_FLAGS = WHV_X64_CPUID_RESULT2_FLAGS(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64CpuidResult2FlagVpSpecific: WHV_X64_CPUID_RESULT2_FLAGS = WHV_X64_CPUID_RESULT2_FLAGS(2i32); |
| impl ::core::marker::Copy for WHV_X64_CPUID_RESULT2_FLAGS {} |
| impl ::core::clone::Clone for WHV_X64_CPUID_RESULT2_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_X64_CPUID_RESULT2_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_CPUID_RESULT2_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_X64_CPUID_RESULT2_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_X64_CPUID_RESULT2_FLAGS").field(&self.0).finish() |
| } |
| } |
| impl WHV_X64_CPUID_RESULT2_FLAGS { |
| pub const fn contains(&self, other: Self) -> bool { |
| self.0 & other.0 == other.0 |
| } |
| } |
| impl ::core::ops::BitOr for WHV_X64_CPUID_RESULT2_FLAGS { |
| type Output = Self; |
| fn bitor(self, other: Self) -> Self { |
| Self(self.0 | other.0) |
| } |
| } |
| impl ::core::ops::BitAnd for WHV_X64_CPUID_RESULT2_FLAGS { |
| type Output = Self; |
| fn bitand(self, other: Self) -> Self { |
| Self(self.0 & other.0) |
| } |
| } |
| impl ::core::ops::BitOrAssign for WHV_X64_CPUID_RESULT2_FLAGS { |
| fn bitor_assign(&mut self, other: Self) { |
| self.0.bitor_assign(other.0) |
| } |
| } |
| impl ::core::ops::BitAndAssign for WHV_X64_CPUID_RESULT2_FLAGS { |
| fn bitand_assign(&mut self, other: Self) { |
| self.0.bitand_assign(other.0) |
| } |
| } |
| impl ::core::ops::Not for WHV_X64_CPUID_RESULT2_FLAGS { |
| type Output = Self; |
| fn not(self) -> Self { |
| Self(self.0.not()) |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_X64_LOCAL_APIC_EMULATION_MODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64LocalApicEmulationModeNone: WHV_X64_LOCAL_APIC_EMULATION_MODE = WHV_X64_LOCAL_APIC_EMULATION_MODE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64LocalApicEmulationModeXApic: WHV_X64_LOCAL_APIC_EMULATION_MODE = WHV_X64_LOCAL_APIC_EMULATION_MODE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64LocalApicEmulationModeX2Apic: WHV_X64_LOCAL_APIC_EMULATION_MODE = WHV_X64_LOCAL_APIC_EMULATION_MODE(2i32); |
| impl ::core::marker::Copy for WHV_X64_LOCAL_APIC_EMULATION_MODE {} |
| impl ::core::clone::Clone for WHV_X64_LOCAL_APIC_EMULATION_MODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_X64_LOCAL_APIC_EMULATION_MODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_LOCAL_APIC_EMULATION_MODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_X64_LOCAL_APIC_EMULATION_MODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_X64_LOCAL_APIC_EMULATION_MODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_X64_PENDING_EVENT_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64PendingEventException: WHV_X64_PENDING_EVENT_TYPE = WHV_X64_PENDING_EVENT_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64PendingEventExtInt: WHV_X64_PENDING_EVENT_TYPE = WHV_X64_PENDING_EVENT_TYPE(5i32); |
| impl ::core::marker::Copy for WHV_X64_PENDING_EVENT_TYPE {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_EVENT_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_X64_PENDING_EVENT_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_EVENT_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_X64_PENDING_EVENT_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_X64_PENDING_EVENT_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_X64_PENDING_INTERRUPTION_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64PendingInterrupt: WHV_X64_PENDING_INTERRUPTION_TYPE = WHV_X64_PENDING_INTERRUPTION_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64PendingNmi: WHV_X64_PENDING_INTERRUPTION_TYPE = WHV_X64_PENDING_INTERRUPTION_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvX64PendingException: WHV_X64_PENDING_INTERRUPTION_TYPE = WHV_X64_PENDING_INTERRUPTION_TYPE(3i32); |
| impl ::core::marker::Copy for WHV_X64_PENDING_INTERRUPTION_TYPE {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_INTERRUPTION_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_X64_PENDING_INTERRUPTION_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_INTERRUPTION_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_X64_PENDING_INTERRUPTION_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_X64_PENDING_INTERRUPTION_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_X64_UNSUPPORTED_FEATURE_CODE(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvUnsupportedFeatureIntercept: WHV_X64_UNSUPPORTED_FEATURE_CODE = WHV_X64_UNSUPPORTED_FEATURE_CODE(1i32); |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub const WHvUnsupportedFeatureTaskSwitchTss: WHV_X64_UNSUPPORTED_FEATURE_CODE = WHV_X64_UNSUPPORTED_FEATURE_CODE(2i32); |
| impl ::core::marker::Copy for WHV_X64_UNSUPPORTED_FEATURE_CODE {} |
| impl ::core::clone::Clone for WHV_X64_UNSUPPORTED_FEATURE_CODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WHV_X64_UNSUPPORTED_FEATURE_CODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_UNSUPPORTED_FEATURE_CODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WHV_X64_UNSUPPORTED_FEATURE_CODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_X64_UNSUPPORTED_FEATURE_CODE").field(&self.0).finish() |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct DOS_IMAGE_INFO { |
| pub PdbName: ::windows::core::PCSTR, |
| pub ImageBaseAddress: u64, |
| pub ImageSize: u32, |
| pub Timestamp: u32, |
| } |
| impl ::core::marker::Copy for DOS_IMAGE_INFO {} |
| impl ::core::clone::Clone for DOS_IMAGE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for DOS_IMAGE_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("DOS_IMAGE_INFO").field("PdbName", &self.PdbName).field("ImageBaseAddress", &self.ImageBaseAddress).field("ImageSize", &self.ImageSize).field("Timestamp", &self.Timestamp).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for DOS_IMAGE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for DOS_IMAGE_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.PdbName == other.PdbName && self.ImageBaseAddress == other.ImageBaseAddress && self.ImageSize == other.ImageSize && self.Timestamp == other.Timestamp |
| } |
| } |
| impl ::core::cmp::Eq for DOS_IMAGE_INFO {} |
| impl ::core::default::Default for DOS_IMAGE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct GPA_MEMORY_CHUNK { |
| pub GuestPhysicalStartPageIndex: u64, |
| pub PageCount: u64, |
| } |
| impl ::core::marker::Copy for GPA_MEMORY_CHUNK {} |
| impl ::core::clone::Clone for GPA_MEMORY_CHUNK { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for GPA_MEMORY_CHUNK { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("GPA_MEMORY_CHUNK").field("GuestPhysicalStartPageIndex", &self.GuestPhysicalStartPageIndex).field("PageCount", &self.PageCount).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for GPA_MEMORY_CHUNK { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for GPA_MEMORY_CHUNK { |
| fn eq(&self, other: &Self) -> bool { |
| self.GuestPhysicalStartPageIndex == other.GuestPhysicalStartPageIndex && self.PageCount == other.PageCount |
| } |
| } |
| impl ::core::cmp::Eq for GPA_MEMORY_CHUNK {} |
| impl ::core::default::Default for GPA_MEMORY_CHUNK { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union GUEST_OS_INFO { |
| pub AsUINT64: u64, |
| pub ClosedSource: GUEST_OS_INFO_0, |
| pub OpenSource: GUEST_OS_INFO_1, |
| } |
| impl ::core::marker::Copy for GUEST_OS_INFO {} |
| impl ::core::clone::Clone for GUEST_OS_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for GUEST_OS_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for GUEST_OS_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct GUEST_OS_INFO_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for GUEST_OS_INFO_0 {} |
| impl ::core::clone::Clone for GUEST_OS_INFO_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for GUEST_OS_INFO_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("GUEST_OS_INFO_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for GUEST_OS_INFO_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for GUEST_OS_INFO_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for GUEST_OS_INFO_0 {} |
| impl ::core::default::Default for GUEST_OS_INFO_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct GUEST_OS_INFO_1 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for GUEST_OS_INFO_1 {} |
| impl ::core::clone::Clone for GUEST_OS_INFO_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for GUEST_OS_INFO_1 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("GUEST_OS_INFO_1").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for GUEST_OS_INFO_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for GUEST_OS_INFO_1 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for GUEST_OS_INFO_1 {} |
| impl ::core::default::Default for GUEST_OS_INFO_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct HDV_PCI_DEVICE_INTERFACE { |
| pub Version: HDV_PCI_INTERFACE_VERSION, |
| pub Initialize: HDV_PCI_DEVICE_INITIALIZE, |
| pub Teardown: HDV_PCI_DEVICE_TEARDOWN, |
| pub SetConfiguration: HDV_PCI_DEVICE_SET_CONFIGURATION, |
| pub GetDetails: HDV_PCI_DEVICE_GET_DETAILS, |
| pub Start: HDV_PCI_DEVICE_START, |
| pub Stop: HDV_PCI_DEVICE_STOP, |
| pub ReadConfigSpace: HDV_PCI_READ_CONFIG_SPACE, |
| pub WriteConfigSpace: HDV_PCI_WRITE_CONFIG_SPACE, |
| pub ReadInterceptedMemory: HDV_PCI_READ_INTERCEPTED_MEMORY, |
| pub WriteInterceptedMemory: HDV_PCI_WRITE_INTERCEPTED_MEMORY, |
| } |
| impl ::core::marker::Copy for HDV_PCI_DEVICE_INTERFACE {} |
| impl ::core::clone::Clone for HDV_PCI_DEVICE_INTERFACE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for HDV_PCI_DEVICE_INTERFACE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("HDV_PCI_DEVICE_INTERFACE").field("Version", &self.Version).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for HDV_PCI_DEVICE_INTERFACE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for HDV_PCI_DEVICE_INTERFACE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct HDV_PCI_PNP_ID { |
| pub VendorID: u16, |
| pub DeviceID: u16, |
| pub RevisionID: u8, |
| pub ProgIf: u8, |
| pub SubClass: u8, |
| pub BaseClass: u8, |
| pub SubVendorID: u16, |
| pub SubSystemID: u16, |
| } |
| impl ::core::marker::Copy for HDV_PCI_PNP_ID {} |
| impl ::core::clone::Clone for HDV_PCI_PNP_ID { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for HDV_PCI_PNP_ID { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("HDV_PCI_PNP_ID").field("VendorID", &self.VendorID).field("DeviceID", &self.DeviceID).field("RevisionID", &self.RevisionID).field("ProgIf", &self.ProgIf).field("SubClass", &self.SubClass).field("BaseClass", &self.BaseClass).field("SubVendorID", &self.SubVendorID).field("SubSystemID", &self.SubSystemID).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for HDV_PCI_PNP_ID { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for HDV_PCI_PNP_ID { |
| fn eq(&self, other: &Self) -> bool { |
| self.VendorID == other.VendorID && self.DeviceID == other.DeviceID && self.RevisionID == other.RevisionID && self.ProgIf == other.ProgIf && self.SubClass == other.SubClass && self.BaseClass == other.BaseClass && self.SubVendorID == other.SubVendorID && self.SubSystemID == other.SubSystemID |
| } |
| } |
| impl ::core::cmp::Eq for HDV_PCI_PNP_ID {} |
| impl ::core::default::Default for HDV_PCI_PNP_ID { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct HVSOCKET_ADDRESS_INFO { |
| pub SystemId: ::windows::core::GUID, |
| pub VirtualMachineId: ::windows::core::GUID, |
| pub SiloId: ::windows::core::GUID, |
| pub Flags: u32, |
| } |
| impl ::core::marker::Copy for HVSOCKET_ADDRESS_INFO {} |
| impl ::core::clone::Clone for HVSOCKET_ADDRESS_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for HVSOCKET_ADDRESS_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("HVSOCKET_ADDRESS_INFO").field("SystemId", &self.SystemId).field("VirtualMachineId", &self.VirtualMachineId).field("SiloId", &self.SiloId).field("Flags", &self.Flags).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for HVSOCKET_ADDRESS_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for HVSOCKET_ADDRESS_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.SystemId == other.SystemId && self.VirtualMachineId == other.VirtualMachineId && self.SiloId == other.SiloId && self.Flags == other.Flags |
| } |
| } |
| impl ::core::cmp::Eq for HVSOCKET_ADDRESS_INFO {} |
| impl ::core::default::Default for HVSOCKET_ADDRESS_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct MODULE_INFO { |
| pub ProcessImageName: ::windows::core::PCSTR, |
| pub Image: DOS_IMAGE_INFO, |
| } |
| impl ::core::marker::Copy for MODULE_INFO {} |
| impl ::core::clone::Clone for MODULE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for MODULE_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("MODULE_INFO").field("ProcessImageName", &self.ProcessImageName).field("Image", &self.Image).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for MODULE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for MODULE_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.ProcessImageName == other.ProcessImageName && self.Image == other.Image |
| } |
| } |
| impl ::core::cmp::Eq for MODULE_INFO {} |
| impl ::core::default::Default for MODULE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Networking_WinSock\"`*"] |
| #[cfg(feature = "Win32_Networking_WinSock")] |
| pub struct SOCKADDR_HV { |
| pub Family: super::super::Networking::WinSock::ADDRESS_FAMILY, |
| pub Reserved: u16, |
| pub VmId: ::windows::core::GUID, |
| pub ServiceId: ::windows::core::GUID, |
| } |
| #[cfg(feature = "Win32_Networking_WinSock")] |
| impl ::core::marker::Copy for SOCKADDR_HV {} |
| #[cfg(feature = "Win32_Networking_WinSock")] |
| impl ::core::clone::Clone for SOCKADDR_HV { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Networking_WinSock")] |
| impl ::core::fmt::Debug for SOCKADDR_HV { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("SOCKADDR_HV").field("Family", &self.Family).field("Reserved", &self.Reserved).field("VmId", &self.VmId).field("ServiceId", &self.ServiceId).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Networking_WinSock")] |
| impl ::windows::core::TypeKind for SOCKADDR_HV { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Networking_WinSock")] |
| impl ::core::cmp::PartialEq for SOCKADDR_HV { |
| fn eq(&self, other: &Self) -> bool { |
| self.Family == other.Family && self.Reserved == other.Reserved && self.VmId == other.VmId && self.ServiceId == other.ServiceId |
| } |
| } |
| #[cfg(feature = "Win32_Networking_WinSock")] |
| impl ::core::cmp::Eq for SOCKADDR_HV {} |
| #[cfg(feature = "Win32_Networking_WinSock")] |
| impl ::core::default::Default for SOCKADDR_HV { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union VIRTUAL_PROCESSOR_REGISTER { |
| pub Reg64: u64, |
| pub Reg32: u32, |
| pub Reg16: u16, |
| pub Reg8: u8, |
| pub Reg128: VIRTUAL_PROCESSOR_REGISTER_0, |
| pub X64: VIRTUAL_PROCESSOR_REGISTER_1, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct VIRTUAL_PROCESSOR_REGISTER_0 { |
| pub Low64: u64, |
| pub High64: u64, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_0 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for VIRTUAL_PROCESSOR_REGISTER_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("VIRTUAL_PROCESSOR_REGISTER_0").field("Low64", &self.Low64).field("High64", &self.High64).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for VIRTUAL_PROCESSOR_REGISTER_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.Low64 == other.Low64 && self.High64 == other.High64 |
| } |
| } |
| impl ::core::cmp::Eq for VIRTUAL_PROCESSOR_REGISTER_0 {} |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union VIRTUAL_PROCESSOR_REGISTER_1 { |
| pub Segment: VIRTUAL_PROCESSOR_REGISTER_1_1, |
| pub Table: VIRTUAL_PROCESSOR_REGISTER_1_2, |
| pub FpControlStatus: VIRTUAL_PROCESSOR_REGISTER_1_0, |
| pub XmmControlStatus: VIRTUAL_PROCESSOR_REGISTER_1_3, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct VIRTUAL_PROCESSOR_REGISTER_1_0 { |
| pub FpControl: u16, |
| pub FpStatus: u16, |
| pub FpTag: u8, |
| pub Reserved: u8, |
| pub LastFpOp: u16, |
| pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_0_0, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_0 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union VIRTUAL_PROCESSOR_REGISTER_1_0_0 { |
| pub LastFpRip: u64, |
| pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_0_0_0, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_0_0 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 { |
| pub LastFpEip: u32, |
| pub LastFpCs: u16, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("VIRTUAL_PROCESSOR_REGISTER_1_0_0_0").field("LastFpEip", &self.LastFpEip).field("LastFpCs", &self.LastFpCs).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.LastFpEip == other.LastFpEip && self.LastFpCs == other.LastFpCs |
| } |
| } |
| impl ::core::cmp::Eq for VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 {} |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct VIRTUAL_PROCESSOR_REGISTER_1_1 { |
| pub Base: u64, |
| pub Limit: u32, |
| pub Selector: u16, |
| pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_1_0, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_1 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union VIRTUAL_PROCESSOR_REGISTER_1_1_0 { |
| pub Attributes: u16, |
| pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_1_0_0, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_1_0 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_1_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_1_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_1_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("VIRTUAL_PROCESSOR_REGISTER_1_1_0_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 {} |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct VIRTUAL_PROCESSOR_REGISTER_1_2 { |
| pub Limit: u16, |
| pub Base: u64, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_2 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_2 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for VIRTUAL_PROCESSOR_REGISTER_1_2 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("VIRTUAL_PROCESSOR_REGISTER_1_2").field("Limit", &self.Limit).field("Base", &self.Base).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_2 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for VIRTUAL_PROCESSOR_REGISTER_1_2 { |
| fn eq(&self, other: &Self) -> bool { |
| self.Limit == other.Limit && self.Base == other.Base |
| } |
| } |
| impl ::core::cmp::Eq for VIRTUAL_PROCESSOR_REGISTER_1_2 {} |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_2 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct VIRTUAL_PROCESSOR_REGISTER_1_3 { |
| pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_3_0, |
| pub XmmStatusControl: u32, |
| pub XmmStatusControlMask: u32, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_3 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_3 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_3 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_3 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union VIRTUAL_PROCESSOR_REGISTER_1_3_0 { |
| pub LastFpRdp: u64, |
| pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_3_0_0, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_3_0 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_3_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_3_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_3_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 { |
| pub LastFpDp: u32, |
| pub LastFpDs: u16, |
| } |
| impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 {} |
| impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("VIRTUAL_PROCESSOR_REGISTER_1_3_0_0").field("LastFpDp", &self.LastFpDp).field("LastFpDs", &self.LastFpDs).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.LastFpDp == other.LastFpDp && self.LastFpDs == other.LastFpDs |
| } |
| } |
| impl ::core::cmp::Eq for VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 {} |
| impl ::core::default::Default for VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct VM_GENCOUNTER { |
| pub GenerationCount: u64, |
| pub GenerationCountHigh: u64, |
| } |
| impl ::core::marker::Copy for VM_GENCOUNTER {} |
| impl ::core::clone::Clone for VM_GENCOUNTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for VM_GENCOUNTER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("VM_GENCOUNTER").field("GenerationCount", &self.GenerationCount).field("GenerationCountHigh", &self.GenerationCountHigh).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for VM_GENCOUNTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for VM_GENCOUNTER { |
| fn eq(&self, other: &Self) -> bool { |
| self.GenerationCount == other.GenerationCount && self.GenerationCountHigh == other.GenerationCountHigh |
| } |
| } |
| impl ::core::cmp::Eq for VM_GENCOUNTER {} |
| impl ::core::default::Default for VM_GENCOUNTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_ACCESS_GPA_CONTROLS { |
| pub AsUINT64: u64, |
| pub Anonymous: WHV_ACCESS_GPA_CONTROLS_0, |
| } |
| impl ::core::marker::Copy for WHV_ACCESS_GPA_CONTROLS {} |
| impl ::core::clone::Clone for WHV_ACCESS_GPA_CONTROLS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_ACCESS_GPA_CONTROLS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_ACCESS_GPA_CONTROLS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_ACCESS_GPA_CONTROLS_0 { |
| pub CacheType: WHV_CACHE_TYPE, |
| pub Reserved: u32, |
| } |
| impl ::core::marker::Copy for WHV_ACCESS_GPA_CONTROLS_0 {} |
| impl ::core::clone::Clone for WHV_ACCESS_GPA_CONTROLS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_ACCESS_GPA_CONTROLS_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_ACCESS_GPA_CONTROLS_0").field("CacheType", &self.CacheType).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_ACCESS_GPA_CONTROLS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_ACCESS_GPA_CONTROLS_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.CacheType == other.CacheType && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for WHV_ACCESS_GPA_CONTROLS_0 {} |
| impl ::core::default::Default for WHV_ACCESS_GPA_CONTROLS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_ADVISE_GPA_RANGE { |
| pub Populate: WHV_ADVISE_GPA_RANGE_POPULATE, |
| } |
| impl ::core::marker::Copy for WHV_ADVISE_GPA_RANGE {} |
| impl ::core::clone::Clone for WHV_ADVISE_GPA_RANGE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_ADVISE_GPA_RANGE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_ADVISE_GPA_RANGE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_ADVISE_GPA_RANGE_POPULATE { |
| pub Flags: WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS, |
| pub AccessType: WHV_MEMORY_ACCESS_TYPE, |
| } |
| impl ::core::marker::Copy for WHV_ADVISE_GPA_RANGE_POPULATE {} |
| impl ::core::clone::Clone for WHV_ADVISE_GPA_RANGE_POPULATE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_ADVISE_GPA_RANGE_POPULATE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_ADVISE_GPA_RANGE_POPULATE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS { |
| pub AsUINT32: u32, |
| pub Anonymous: WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0, |
| } |
| impl ::core::marker::Copy for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS {} |
| impl ::core::clone::Clone for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 {} |
| impl ::core::clone::Clone for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 {} |
| impl ::core::default::Default for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub union WHV_CAPABILITY { |
| pub HypervisorPresent: super::super::Foundation::BOOL, |
| pub Features: WHV_CAPABILITY_FEATURES, |
| pub ExtendedVmExits: WHV_EXTENDED_VM_EXITS, |
| pub ProcessorVendor: WHV_PROCESSOR_VENDOR, |
| pub ProcessorFeatures: WHV_PROCESSOR_FEATURES, |
| pub SyntheticProcessorFeaturesBanks: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS, |
| pub ProcessorXsaveFeatures: WHV_PROCESSOR_XSAVE_FEATURES, |
| pub ProcessorClFlushSize: u8, |
| pub ExceptionExitBitmap: u64, |
| pub X64MsrExitBitmap: WHV_X64_MSR_EXIT_BITMAP, |
| pub ProcessorClockFrequency: u64, |
| pub InterruptClockFrequency: u64, |
| pub ProcessorFeaturesBanks: WHV_PROCESSOR_FEATURES_BANKS, |
| pub GpaRangePopulateFlags: WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS, |
| pub ProcessorFrequencyCap: WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP, |
| pub ProcessorPerfmonFeatures: WHV_PROCESSOR_PERFMON_FEATURES, |
| pub SchedulerFeatures: WHV_SCHEDULER_FEATURES, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for WHV_CAPABILITY {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for WHV_CAPABILITY { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for WHV_CAPABILITY { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for WHV_CAPABILITY { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_CAPABILITY_FEATURES { |
| pub Anonymous: WHV_CAPABILITY_FEATURES_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_CAPABILITY_FEATURES {} |
| impl ::core::clone::Clone for WHV_CAPABILITY_FEATURES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_CAPABILITY_FEATURES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_CAPABILITY_FEATURES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_CAPABILITY_FEATURES_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_CAPABILITY_FEATURES_0 {} |
| impl ::core::clone::Clone for WHV_CAPABILITY_FEATURES_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_CAPABILITY_FEATURES_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_CAPABILITY_FEATURES_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_CAPABILITY_FEATURES_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_CAPABILITY_FEATURES_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_CAPABILITY_FEATURES_0 {} |
| impl ::core::default::Default for WHV_CAPABILITY_FEATURES_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP { |
| pub _bitfield: u32, |
| pub HighestFrequencyMhz: u32, |
| pub NominalFrequencyMhz: u32, |
| pub LowestFrequencyMhz: u32, |
| pub FrequencyStepMhz: u32, |
| } |
| impl ::core::marker::Copy for WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP {} |
| impl ::core::clone::Clone for WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP").field("_bitfield", &self._bitfield).field("HighestFrequencyMhz", &self.HighestFrequencyMhz).field("NominalFrequencyMhz", &self.NominalFrequencyMhz).field("LowestFrequencyMhz", &self.LowestFrequencyMhz).field("FrequencyStepMhz", &self.FrequencyStepMhz).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield && self.HighestFrequencyMhz == other.HighestFrequencyMhz && self.NominalFrequencyMhz == other.NominalFrequencyMhz && self.LowestFrequencyMhz == other.LowestFrequencyMhz && self.FrequencyStepMhz == other.FrequencyStepMhz |
| } |
| } |
| impl ::core::cmp::Eq for WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP {} |
| impl ::core::default::Default for WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_CPUID_OUTPUT { |
| pub Eax: u32, |
| pub Ebx: u32, |
| pub Ecx: u32, |
| pub Edx: u32, |
| } |
| impl ::core::marker::Copy for WHV_CPUID_OUTPUT {} |
| impl ::core::clone::Clone for WHV_CPUID_OUTPUT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_CPUID_OUTPUT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_CPUID_OUTPUT").field("Eax", &self.Eax).field("Ebx", &self.Ebx).field("Ecx", &self.Ecx).field("Edx", &self.Edx).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_CPUID_OUTPUT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_CPUID_OUTPUT { |
| fn eq(&self, other: &Self) -> bool { |
| self.Eax == other.Eax && self.Ebx == other.Ebx && self.Ecx == other.Ecx && self.Edx == other.Edx |
| } |
| } |
| impl ::core::cmp::Eq for WHV_CPUID_OUTPUT {} |
| impl ::core::default::Default for WHV_CPUID_OUTPUT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_DOORBELL_MATCH_DATA { |
| pub GuestAddress: u64, |
| pub Value: u64, |
| pub Length: u32, |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for WHV_DOORBELL_MATCH_DATA {} |
| impl ::core::clone::Clone for WHV_DOORBELL_MATCH_DATA { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_DOORBELL_MATCH_DATA { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_DOORBELL_MATCH_DATA").field("GuestAddress", &self.GuestAddress).field("Value", &self.Value).field("Length", &self.Length).field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_DOORBELL_MATCH_DATA { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_DOORBELL_MATCH_DATA { |
| fn eq(&self, other: &Self) -> bool { |
| self.GuestAddress == other.GuestAddress && self.Value == other.Value && self.Length == other.Length && self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_DOORBELL_MATCH_DATA {} |
| impl ::core::default::Default for WHV_DOORBELL_MATCH_DATA { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_EMULATOR_CALLBACKS { |
| pub Size: u32, |
| pub Reserved: u32, |
| pub WHvEmulatorIoPortCallback: WHV_EMULATOR_IO_PORT_CALLBACK, |
| pub WHvEmulatorMemoryCallback: WHV_EMULATOR_MEMORY_CALLBACK, |
| pub WHvEmulatorGetVirtualProcessorRegisters: WHV_EMULATOR_GET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK, |
| pub WHvEmulatorSetVirtualProcessorRegisters: WHV_EMULATOR_SET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK, |
| pub WHvEmulatorTranslateGvaPage: WHV_EMULATOR_TRANSLATE_GVA_PAGE_CALLBACK, |
| } |
| impl ::core::marker::Copy for WHV_EMULATOR_CALLBACKS {} |
| impl ::core::clone::Clone for WHV_EMULATOR_CALLBACKS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_EMULATOR_CALLBACKS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_EMULATOR_CALLBACKS").field("Size", &self.Size).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_EMULATOR_CALLBACKS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_EMULATOR_CALLBACKS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_EMULATOR_IO_ACCESS_INFO { |
| pub Direction: u8, |
| pub Port: u16, |
| pub AccessSize: u16, |
| pub Data: u32, |
| } |
| impl ::core::marker::Copy for WHV_EMULATOR_IO_ACCESS_INFO {} |
| impl ::core::clone::Clone for WHV_EMULATOR_IO_ACCESS_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_EMULATOR_IO_ACCESS_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_EMULATOR_IO_ACCESS_INFO").field("Direction", &self.Direction).field("Port", &self.Port).field("AccessSize", &self.AccessSize).field("Data", &self.Data).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_EMULATOR_IO_ACCESS_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_EMULATOR_IO_ACCESS_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.Direction == other.Direction && self.Port == other.Port && self.AccessSize == other.AccessSize && self.Data == other.Data |
| } |
| } |
| impl ::core::cmp::Eq for WHV_EMULATOR_IO_ACCESS_INFO {} |
| impl ::core::default::Default for WHV_EMULATOR_IO_ACCESS_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_EMULATOR_MEMORY_ACCESS_INFO { |
| pub GpaAddress: u64, |
| pub Direction: u8, |
| pub AccessSize: u8, |
| pub Data: [u8; 8], |
| } |
| impl ::core::marker::Copy for WHV_EMULATOR_MEMORY_ACCESS_INFO {} |
| impl ::core::clone::Clone for WHV_EMULATOR_MEMORY_ACCESS_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_EMULATOR_MEMORY_ACCESS_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_EMULATOR_MEMORY_ACCESS_INFO").field("GpaAddress", &self.GpaAddress).field("Direction", &self.Direction).field("AccessSize", &self.AccessSize).field("Data", &self.Data).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_EMULATOR_MEMORY_ACCESS_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_EMULATOR_MEMORY_ACCESS_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.GpaAddress == other.GpaAddress && self.Direction == other.Direction && self.AccessSize == other.AccessSize && self.Data == other.Data |
| } |
| } |
| impl ::core::cmp::Eq for WHV_EMULATOR_MEMORY_ACCESS_INFO {} |
| impl ::core::default::Default for WHV_EMULATOR_MEMORY_ACCESS_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_EMULATOR_STATUS { |
| pub Anonymous: WHV_EMULATOR_STATUS_0, |
| pub AsUINT32: u32, |
| } |
| impl ::core::marker::Copy for WHV_EMULATOR_STATUS {} |
| impl ::core::clone::Clone for WHV_EMULATOR_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_EMULATOR_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_EMULATOR_STATUS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_EMULATOR_STATUS_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for WHV_EMULATOR_STATUS_0 {} |
| impl ::core::clone::Clone for WHV_EMULATOR_STATUS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_EMULATOR_STATUS_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_EMULATOR_STATUS_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_EMULATOR_STATUS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_EMULATOR_STATUS_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_EMULATOR_STATUS_0 {} |
| impl ::core::default::Default for WHV_EMULATOR_STATUS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_EXTENDED_VM_EXITS { |
| pub Anonymous: WHV_EXTENDED_VM_EXITS_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_EXTENDED_VM_EXITS {} |
| impl ::core::clone::Clone for WHV_EXTENDED_VM_EXITS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_EXTENDED_VM_EXITS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_EXTENDED_VM_EXITS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_EXTENDED_VM_EXITS_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_EXTENDED_VM_EXITS_0 {} |
| impl ::core::clone::Clone for WHV_EXTENDED_VM_EXITS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_EXTENDED_VM_EXITS_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_EXTENDED_VM_EXITS_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_EXTENDED_VM_EXITS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_EXTENDED_VM_EXITS_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_EXTENDED_VM_EXITS_0 {} |
| impl ::core::default::Default for WHV_EXTENDED_VM_EXITS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_HYPERCALL_CONTEXT { |
| pub Rax: u64, |
| pub Rbx: u64, |
| pub Rcx: u64, |
| pub Rdx: u64, |
| pub R8: u64, |
| pub Rsi: u64, |
| pub Rdi: u64, |
| pub Reserved0: u64, |
| pub XmmRegisters: [WHV_UINT128; 6], |
| pub Reserved1: [u64; 2], |
| } |
| impl ::core::marker::Copy for WHV_HYPERCALL_CONTEXT {} |
| impl ::core::clone::Clone for WHV_HYPERCALL_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_HYPERCALL_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_HYPERCALL_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_INTERNAL_ACTIVITY_REGISTER { |
| pub Anonymous: WHV_INTERNAL_ACTIVITY_REGISTER_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_INTERNAL_ACTIVITY_REGISTER {} |
| impl ::core::clone::Clone for WHV_INTERNAL_ACTIVITY_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_INTERNAL_ACTIVITY_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_INTERNAL_ACTIVITY_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_INTERNAL_ACTIVITY_REGISTER_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_INTERNAL_ACTIVITY_REGISTER_0 {} |
| impl ::core::clone::Clone for WHV_INTERNAL_ACTIVITY_REGISTER_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_INTERNAL_ACTIVITY_REGISTER_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_INTERNAL_ACTIVITY_REGISTER_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_INTERNAL_ACTIVITY_REGISTER_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_INTERNAL_ACTIVITY_REGISTER_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_INTERNAL_ACTIVITY_REGISTER_0 {} |
| impl ::core::default::Default for WHV_INTERNAL_ACTIVITY_REGISTER_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_INTERRUPT_CONTROL { |
| pub _bitfield: u64, |
| pub Destination: u32, |
| pub Vector: u32, |
| } |
| impl ::core::marker::Copy for WHV_INTERRUPT_CONTROL {} |
| impl ::core::clone::Clone for WHV_INTERRUPT_CONTROL { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_INTERRUPT_CONTROL { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_INTERRUPT_CONTROL").field("_bitfield", &self._bitfield).field("Destination", &self.Destination).field("Vector", &self.Vector).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_INTERRUPT_CONTROL { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_INTERRUPT_CONTROL { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield && self.Destination == other.Destination && self.Vector == other.Vector |
| } |
| } |
| impl ::core::cmp::Eq for WHV_INTERRUPT_CONTROL {} |
| impl ::core::default::Default for WHV_INTERRUPT_CONTROL { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_MEMORY_ACCESS_CONTEXT { |
| pub InstructionByteCount: u8, |
| pub Reserved: [u8; 3], |
| pub InstructionBytes: [u8; 16], |
| pub AccessInfo: WHV_MEMORY_ACCESS_INFO, |
| pub Gpa: u64, |
| pub Gva: u64, |
| } |
| impl ::core::marker::Copy for WHV_MEMORY_ACCESS_CONTEXT {} |
| impl ::core::clone::Clone for WHV_MEMORY_ACCESS_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_MEMORY_ACCESS_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_MEMORY_ACCESS_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_MEMORY_ACCESS_INFO { |
| pub Anonymous: WHV_MEMORY_ACCESS_INFO_0, |
| pub AsUINT32: u32, |
| } |
| impl ::core::marker::Copy for WHV_MEMORY_ACCESS_INFO {} |
| impl ::core::clone::Clone for WHV_MEMORY_ACCESS_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_MEMORY_ACCESS_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_MEMORY_ACCESS_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_MEMORY_ACCESS_INFO_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for WHV_MEMORY_ACCESS_INFO_0 {} |
| impl ::core::clone::Clone for WHV_MEMORY_ACCESS_INFO_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_MEMORY_ACCESS_INFO_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_MEMORY_ACCESS_INFO_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_MEMORY_ACCESS_INFO_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_MEMORY_ACCESS_INFO_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_MEMORY_ACCESS_INFO_0 {} |
| impl ::core::default::Default for WHV_MEMORY_ACCESS_INFO_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_MEMORY_RANGE_ENTRY { |
| pub GuestAddress: u64, |
| pub SizeInBytes: u64, |
| } |
| impl ::core::marker::Copy for WHV_MEMORY_RANGE_ENTRY {} |
| impl ::core::clone::Clone for WHV_MEMORY_RANGE_ENTRY { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_MEMORY_RANGE_ENTRY { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_MEMORY_RANGE_ENTRY").field("GuestAddress", &self.GuestAddress).field("SizeInBytes", &self.SizeInBytes).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_MEMORY_RANGE_ENTRY { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_MEMORY_RANGE_ENTRY { |
| fn eq(&self, other: &Self) -> bool { |
| self.GuestAddress == other.GuestAddress && self.SizeInBytes == other.SizeInBytes |
| } |
| } |
| impl ::core::cmp::Eq for WHV_MEMORY_RANGE_ENTRY {} |
| impl ::core::default::Default for WHV_MEMORY_RANGE_ENTRY { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_MSR_ACTION_ENTRY { |
| pub Index: u32, |
| pub ReadAction: u8, |
| pub WriteAction: u8, |
| pub Reserved: u16, |
| } |
| impl ::core::marker::Copy for WHV_MSR_ACTION_ENTRY {} |
| impl ::core::clone::Clone for WHV_MSR_ACTION_ENTRY { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_MSR_ACTION_ENTRY { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_MSR_ACTION_ENTRY").field("Index", &self.Index).field("ReadAction", &self.ReadAction).field("WriteAction", &self.WriteAction).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_MSR_ACTION_ENTRY { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_MSR_ACTION_ENTRY { |
| fn eq(&self, other: &Self) -> bool { |
| self.Index == other.Index && self.ReadAction == other.ReadAction && self.WriteAction == other.WriteAction && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for WHV_MSR_ACTION_ENTRY {} |
| impl ::core::default::Default for WHV_MSR_ACTION_ENTRY { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_NOTIFICATION_PORT_PARAMETERS { |
| pub NotificationPortType: WHV_NOTIFICATION_PORT_TYPE, |
| pub Reserved: u32, |
| pub Anonymous: WHV_NOTIFICATION_PORT_PARAMETERS_0, |
| } |
| impl ::core::marker::Copy for WHV_NOTIFICATION_PORT_PARAMETERS {} |
| impl ::core::clone::Clone for WHV_NOTIFICATION_PORT_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_NOTIFICATION_PORT_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_NOTIFICATION_PORT_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_NOTIFICATION_PORT_PARAMETERS_0 { |
| pub Doorbell: WHV_DOORBELL_MATCH_DATA, |
| pub Event: WHV_NOTIFICATION_PORT_PARAMETERS_0_0, |
| } |
| impl ::core::marker::Copy for WHV_NOTIFICATION_PORT_PARAMETERS_0 {} |
| impl ::core::clone::Clone for WHV_NOTIFICATION_PORT_PARAMETERS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_NOTIFICATION_PORT_PARAMETERS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_NOTIFICATION_PORT_PARAMETERS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_NOTIFICATION_PORT_PARAMETERS_0_0 { |
| pub ConnectionId: u32, |
| } |
| impl ::core::marker::Copy for WHV_NOTIFICATION_PORT_PARAMETERS_0_0 {} |
| impl ::core::clone::Clone for WHV_NOTIFICATION_PORT_PARAMETERS_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_NOTIFICATION_PORT_PARAMETERS_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_NOTIFICATION_PORT_PARAMETERS_0_0").field("ConnectionId", &self.ConnectionId).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_NOTIFICATION_PORT_PARAMETERS_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_NOTIFICATION_PORT_PARAMETERS_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.ConnectionId == other.ConnectionId |
| } |
| } |
| impl ::core::cmp::Eq for WHV_NOTIFICATION_PORT_PARAMETERS_0_0 {} |
| impl ::core::default::Default for WHV_NOTIFICATION_PORT_PARAMETERS_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WHV_PARTITION_HANDLE(pub isize); |
| impl WHV_PARTITION_HANDLE { |
| pub fn is_invalid(&self) -> bool { |
| self.0 == -1 || self.0 == 0 |
| } |
| } |
| impl ::core::default::Default for WHV_PARTITION_HANDLE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| impl ::core::clone::Clone for WHV_PARTITION_HANDLE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::marker::Copy for WHV_PARTITION_HANDLE {} |
| impl ::core::fmt::Debug for WHV_PARTITION_HANDLE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WHV_PARTITION_HANDLE").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PARTITION_HANDLE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PARTITION_MEMORY_COUNTERS { |
| pub Mapped4KPageCount: u64, |
| pub Mapped2MPageCount: u64, |
| pub Mapped1GPageCount: u64, |
| } |
| impl ::core::marker::Copy for WHV_PARTITION_MEMORY_COUNTERS {} |
| impl ::core::clone::Clone for WHV_PARTITION_MEMORY_COUNTERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PARTITION_MEMORY_COUNTERS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PARTITION_MEMORY_COUNTERS").field("Mapped4KPageCount", &self.Mapped4KPageCount).field("Mapped2MPageCount", &self.Mapped2MPageCount).field("Mapped1GPageCount", &self.Mapped1GPageCount).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PARTITION_MEMORY_COUNTERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PARTITION_MEMORY_COUNTERS { |
| fn eq(&self, other: &Self) -> bool { |
| self.Mapped4KPageCount == other.Mapped4KPageCount && self.Mapped2MPageCount == other.Mapped2MPageCount && self.Mapped1GPageCount == other.Mapped1GPageCount |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PARTITION_MEMORY_COUNTERS {} |
| impl ::core::default::Default for WHV_PARTITION_MEMORY_COUNTERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub union WHV_PARTITION_PROPERTY { |
| pub ExtendedVmExits: WHV_EXTENDED_VM_EXITS, |
| pub ProcessorFeatures: WHV_PROCESSOR_FEATURES, |
| pub SyntheticProcessorFeaturesBanks: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS, |
| pub ProcessorXsaveFeatures: WHV_PROCESSOR_XSAVE_FEATURES, |
| pub ProcessorClFlushSize: u8, |
| pub ProcessorCount: u32, |
| pub CpuidExitList: [u32; 1], |
| pub CpuidResultList: [WHV_X64_CPUID_RESULT; 1], |
| pub CpuidResultList2: [WHV_X64_CPUID_RESULT2; 1], |
| pub MsrActionList: [WHV_MSR_ACTION_ENTRY; 1], |
| pub UnimplementedMsrAction: WHV_MSR_ACTION, |
| pub ExceptionExitBitmap: u64, |
| pub LocalApicEmulationMode: WHV_X64_LOCAL_APIC_EMULATION_MODE, |
| pub SeparateSecurityDomain: super::super::Foundation::BOOL, |
| pub NestedVirtualization: super::super::Foundation::BOOL, |
| pub X64MsrExitBitmap: WHV_X64_MSR_EXIT_BITMAP, |
| pub ProcessorClockFrequency: u64, |
| pub InterruptClockFrequency: u64, |
| pub ApicRemoteRead: super::super::Foundation::BOOL, |
| pub ProcessorFeaturesBanks: WHV_PROCESSOR_FEATURES_BANKS, |
| pub ReferenceTime: u64, |
| pub PrimaryNumaNode: u16, |
| pub CpuReserve: u32, |
| pub CpuCap: u32, |
| pub CpuWeight: u32, |
| pub CpuGroupId: u64, |
| pub ProcessorFrequencyCap: u32, |
| pub AllowDeviceAssignment: super::super::Foundation::BOOL, |
| pub ProcessorPerfmonFeatures: WHV_PROCESSOR_PERFMON_FEATURES, |
| pub DisableSmt: super::super::Foundation::BOOL, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for WHV_PARTITION_PROPERTY {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for WHV_PARTITION_PROPERTY { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for WHV_PARTITION_PROPERTY { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for WHV_PARTITION_PROPERTY { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_APIC_COUNTERS { |
| pub MmioAccessCount: u64, |
| pub EoiAccessCount: u64, |
| pub TprAccessCount: u64, |
| pub SentIpiCount: u64, |
| pub SelfIpiCount: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_APIC_COUNTERS {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_APIC_COUNTERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_APIC_COUNTERS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_APIC_COUNTERS").field("MmioAccessCount", &self.MmioAccessCount).field("EoiAccessCount", &self.EoiAccessCount).field("TprAccessCount", &self.TprAccessCount).field("SentIpiCount", &self.SentIpiCount).field("SelfIpiCount", &self.SelfIpiCount).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_APIC_COUNTERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_APIC_COUNTERS { |
| fn eq(&self, other: &Self) -> bool { |
| self.MmioAccessCount == other.MmioAccessCount && self.EoiAccessCount == other.EoiAccessCount && self.TprAccessCount == other.TprAccessCount && self.SentIpiCount == other.SentIpiCount && self.SelfIpiCount == other.SelfIpiCount |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_APIC_COUNTERS {} |
| impl ::core::default::Default for WHV_PROCESSOR_APIC_COUNTERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_EVENT_COUNTERS { |
| pub PageFaultCount: u64, |
| pub ExceptionCount: u64, |
| pub InterruptCount: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_EVENT_COUNTERS {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_EVENT_COUNTERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_EVENT_COUNTERS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_EVENT_COUNTERS").field("PageFaultCount", &self.PageFaultCount).field("ExceptionCount", &self.ExceptionCount).field("InterruptCount", &self.InterruptCount).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_EVENT_COUNTERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_EVENT_COUNTERS { |
| fn eq(&self, other: &Self) -> bool { |
| self.PageFaultCount == other.PageFaultCount && self.ExceptionCount == other.ExceptionCount && self.InterruptCount == other.InterruptCount |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_EVENT_COUNTERS {} |
| impl ::core::default::Default for WHV_PROCESSOR_EVENT_COUNTERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_PROCESSOR_FEATURES { |
| pub Anonymous: WHV_PROCESSOR_FEATURES_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_FEATURES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_PROCESSOR_FEATURES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_FEATURES_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES_0 {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_FEATURES_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_FEATURES_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_FEATURES_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_FEATURES_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_FEATURES_0 {} |
| impl ::core::default::Default for WHV_PROCESSOR_FEATURES_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_PROCESSOR_FEATURES1 { |
| pub Anonymous: WHV_PROCESSOR_FEATURES1_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES1 {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_FEATURES1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_PROCESSOR_FEATURES1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_FEATURES1_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES1_0 {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES1_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_FEATURES1_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_FEATURES1_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_FEATURES1_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_FEATURES1_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_FEATURES1_0 {} |
| impl ::core::default::Default for WHV_PROCESSOR_FEATURES1_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_FEATURES_BANKS { |
| pub BanksCount: u32, |
| pub Reserved0: u32, |
| pub Anonymous: WHV_PROCESSOR_FEATURES_BANKS_0, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES_BANKS {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES_BANKS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_FEATURES_BANKS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_PROCESSOR_FEATURES_BANKS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_PROCESSOR_FEATURES_BANKS_0 { |
| pub Anonymous: WHV_PROCESSOR_FEATURES_BANKS_0_0, |
| pub AsUINT64: [u64; 2], |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES_BANKS_0 {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES_BANKS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_FEATURES_BANKS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_PROCESSOR_FEATURES_BANKS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_FEATURES_BANKS_0_0 { |
| pub Bank0: WHV_PROCESSOR_FEATURES, |
| pub Bank1: WHV_PROCESSOR_FEATURES1, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES_BANKS_0_0 {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES_BANKS_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_FEATURES_BANKS_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_PROCESSOR_FEATURES_BANKS_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_INTERCEPT_COUNTER { |
| pub Count: u64, |
| pub Time100ns: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_INTERCEPT_COUNTER {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_INTERCEPT_COUNTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_INTERCEPT_COUNTER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_INTERCEPT_COUNTER").field("Count", &self.Count).field("Time100ns", &self.Time100ns).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_INTERCEPT_COUNTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_INTERCEPT_COUNTER { |
| fn eq(&self, other: &Self) -> bool { |
| self.Count == other.Count && self.Time100ns == other.Time100ns |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_INTERCEPT_COUNTER {} |
| impl ::core::default::Default for WHV_PROCESSOR_INTERCEPT_COUNTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_INTERCEPT_COUNTERS { |
| pub PageInvalidations: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub ControlRegisterAccesses: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub IoInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub HaltInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub CpuidInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub MsrAccesses: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub OtherIntercepts: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub PendingInterrupts: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub EmulatedInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub DebugRegisterAccesses: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub PageFaultIntercepts: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub NestedPageFaultIntercepts: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub Hypercalls: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| pub RdpmcInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_INTERCEPT_COUNTERS {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_INTERCEPT_COUNTERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_INTERCEPT_COUNTERS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_INTERCEPT_COUNTERS") |
| .field("PageInvalidations", &self.PageInvalidations) |
| .field("ControlRegisterAccesses", &self.ControlRegisterAccesses) |
| .field("IoInstructions", &self.IoInstructions) |
| .field("HaltInstructions", &self.HaltInstructions) |
| .field("CpuidInstructions", &self.CpuidInstructions) |
| .field("MsrAccesses", &self.MsrAccesses) |
| .field("OtherIntercepts", &self.OtherIntercepts) |
| .field("PendingInterrupts", &self.PendingInterrupts) |
| .field("EmulatedInstructions", &self.EmulatedInstructions) |
| .field("DebugRegisterAccesses", &self.DebugRegisterAccesses) |
| .field("PageFaultIntercepts", &self.PageFaultIntercepts) |
| .field("NestedPageFaultIntercepts", &self.NestedPageFaultIntercepts) |
| .field("Hypercalls", &self.Hypercalls) |
| .field("RdpmcInstructions", &self.RdpmcInstructions) |
| .finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_INTERCEPT_COUNTERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_INTERCEPT_COUNTERS { |
| fn eq(&self, other: &Self) -> bool { |
| self.PageInvalidations == other.PageInvalidations && self.ControlRegisterAccesses == other.ControlRegisterAccesses && self.IoInstructions == other.IoInstructions && self.HaltInstructions == other.HaltInstructions && self.CpuidInstructions == other.CpuidInstructions && self.MsrAccesses == other.MsrAccesses && self.OtherIntercepts == other.OtherIntercepts && self.PendingInterrupts == other.PendingInterrupts && self.EmulatedInstructions == other.EmulatedInstructions && self.DebugRegisterAccesses == other.DebugRegisterAccesses && self.PageFaultIntercepts == other.PageFaultIntercepts && self.NestedPageFaultIntercepts == other.NestedPageFaultIntercepts && self.Hypercalls == other.Hypercalls && self.RdpmcInstructions == other.RdpmcInstructions |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_INTERCEPT_COUNTERS {} |
| impl ::core::default::Default for WHV_PROCESSOR_INTERCEPT_COUNTERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_PROCESSOR_PERFMON_FEATURES { |
| pub Anonymous: WHV_PROCESSOR_PERFMON_FEATURES_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_PERFMON_FEATURES {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_PERFMON_FEATURES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_PERFMON_FEATURES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_PROCESSOR_PERFMON_FEATURES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_PERFMON_FEATURES_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_PERFMON_FEATURES_0 {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_PERFMON_FEATURES_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_PERFMON_FEATURES_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_PERFMON_FEATURES_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_PERFMON_FEATURES_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_PERFMON_FEATURES_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_PERFMON_FEATURES_0 {} |
| impl ::core::default::Default for WHV_PROCESSOR_PERFMON_FEATURES_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_RUNTIME_COUNTERS { |
| pub TotalRuntime100ns: u64, |
| pub HypervisorRuntime100ns: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_RUNTIME_COUNTERS {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_RUNTIME_COUNTERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_RUNTIME_COUNTERS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_RUNTIME_COUNTERS").field("TotalRuntime100ns", &self.TotalRuntime100ns).field("HypervisorRuntime100ns", &self.HypervisorRuntime100ns).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_RUNTIME_COUNTERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_RUNTIME_COUNTERS { |
| fn eq(&self, other: &Self) -> bool { |
| self.TotalRuntime100ns == other.TotalRuntime100ns && self.HypervisorRuntime100ns == other.HypervisorRuntime100ns |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_RUNTIME_COUNTERS {} |
| impl ::core::default::Default for WHV_PROCESSOR_RUNTIME_COUNTERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS { |
| pub SyntheticInterruptsCount: u64, |
| pub LongSpinWaitHypercallsCount: u64, |
| pub OtherHypercallsCount: u64, |
| pub SyntheticInterruptHypercallsCount: u64, |
| pub VirtualInterruptHypercallsCount: u64, |
| pub VirtualMmuHypercallsCount: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS") |
| .field("SyntheticInterruptsCount", &self.SyntheticInterruptsCount) |
| .field("LongSpinWaitHypercallsCount", &self.LongSpinWaitHypercallsCount) |
| .field("OtherHypercallsCount", &self.OtherHypercallsCount) |
| .field("SyntheticInterruptHypercallsCount", &self.SyntheticInterruptHypercallsCount) |
| .field("VirtualInterruptHypercallsCount", &self.VirtualInterruptHypercallsCount) |
| .field("VirtualMmuHypercallsCount", &self.VirtualMmuHypercallsCount) |
| .finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS { |
| fn eq(&self, other: &Self) -> bool { |
| self.SyntheticInterruptsCount == other.SyntheticInterruptsCount && self.LongSpinWaitHypercallsCount == other.LongSpinWaitHypercallsCount && self.OtherHypercallsCount == other.OtherHypercallsCount && self.SyntheticInterruptHypercallsCount == other.SyntheticInterruptHypercallsCount && self.VirtualInterruptHypercallsCount == other.VirtualInterruptHypercallsCount && self.VirtualMmuHypercallsCount == other.VirtualMmuHypercallsCount |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS {} |
| impl ::core::default::Default for WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_PROCESSOR_XSAVE_FEATURES { |
| pub Anonymous: WHV_PROCESSOR_XSAVE_FEATURES_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_XSAVE_FEATURES {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_XSAVE_FEATURES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_XSAVE_FEATURES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_PROCESSOR_XSAVE_FEATURES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_PROCESSOR_XSAVE_FEATURES_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_PROCESSOR_XSAVE_FEATURES_0 {} |
| impl ::core::clone::Clone for WHV_PROCESSOR_XSAVE_FEATURES_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_PROCESSOR_XSAVE_FEATURES_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_PROCESSOR_XSAVE_FEATURES_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_PROCESSOR_XSAVE_FEATURES_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_PROCESSOR_XSAVE_FEATURES_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_PROCESSOR_XSAVE_FEATURES_0 {} |
| impl ::core::default::Default for WHV_PROCESSOR_XSAVE_FEATURES_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_REGISTER_VALUE { |
| pub Reg128: WHV_UINT128, |
| pub Reg64: u64, |
| pub Reg32: u32, |
| pub Reg16: u16, |
| pub Reg8: u8, |
| pub Fp: WHV_X64_FP_REGISTER, |
| pub FpControlStatus: WHV_X64_FP_CONTROL_STATUS_REGISTER, |
| pub XmmControlStatus: WHV_X64_XMM_CONTROL_STATUS_REGISTER, |
| pub Segment: WHV_X64_SEGMENT_REGISTER, |
| pub Table: WHV_X64_TABLE_REGISTER, |
| pub InterruptState: WHV_X64_INTERRUPT_STATE_REGISTER, |
| pub PendingInterruption: WHV_X64_PENDING_INTERRUPTION_REGISTER, |
| pub DeliverabilityNotifications: WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER, |
| pub ExceptionEvent: WHV_X64_PENDING_EXCEPTION_EVENT, |
| pub ExtIntEvent: WHV_X64_PENDING_EXT_INT_EVENT, |
| pub InternalActivity: WHV_INTERNAL_ACTIVITY_REGISTER, |
| pub PendingDebugException: WHV_X64_PENDING_DEBUG_EXCEPTION, |
| } |
| impl ::core::marker::Copy for WHV_REGISTER_VALUE {} |
| impl ::core::clone::Clone for WHV_REGISTER_VALUE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_REGISTER_VALUE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_REGISTER_VALUE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_RUN_VP_CANCELED_CONTEXT { |
| pub CancelReason: WHV_RUN_VP_CANCEL_REASON, |
| } |
| impl ::core::marker::Copy for WHV_RUN_VP_CANCELED_CONTEXT {} |
| impl ::core::clone::Clone for WHV_RUN_VP_CANCELED_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_RUN_VP_CANCELED_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_RUN_VP_CANCELED_CONTEXT").field("CancelReason", &self.CancelReason).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_RUN_VP_CANCELED_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_RUN_VP_CANCELED_CONTEXT { |
| fn eq(&self, other: &Self) -> bool { |
| self.CancelReason == other.CancelReason |
| } |
| } |
| impl ::core::cmp::Eq for WHV_RUN_VP_CANCELED_CONTEXT {} |
| impl ::core::default::Default for WHV_RUN_VP_CANCELED_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_RUN_VP_EXIT_CONTEXT { |
| pub ExitReason: WHV_RUN_VP_EXIT_REASON, |
| pub Reserved: u32, |
| pub VpContext: WHV_VP_EXIT_CONTEXT, |
| pub Anonymous: WHV_RUN_VP_EXIT_CONTEXT_0, |
| } |
| impl ::core::marker::Copy for WHV_RUN_VP_EXIT_CONTEXT {} |
| impl ::core::clone::Clone for WHV_RUN_VP_EXIT_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_RUN_VP_EXIT_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_RUN_VP_EXIT_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_RUN_VP_EXIT_CONTEXT_0 { |
| pub MemoryAccess: WHV_MEMORY_ACCESS_CONTEXT, |
| pub IoPortAccess: WHV_X64_IO_PORT_ACCESS_CONTEXT, |
| pub MsrAccess: WHV_X64_MSR_ACCESS_CONTEXT, |
| pub CpuidAccess: WHV_X64_CPUID_ACCESS_CONTEXT, |
| pub VpException: WHV_VP_EXCEPTION_CONTEXT, |
| pub InterruptWindow: WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT, |
| pub UnsupportedFeature: WHV_X64_UNSUPPORTED_FEATURE_CONTEXT, |
| pub CancelReason: WHV_RUN_VP_CANCELED_CONTEXT, |
| pub ApicEoi: WHV_X64_APIC_EOI_CONTEXT, |
| pub ReadTsc: WHV_X64_RDTSC_CONTEXT, |
| pub ApicSmi: WHV_X64_APIC_SMI_CONTEXT, |
| pub Hypercall: WHV_HYPERCALL_CONTEXT, |
| pub ApicInitSipi: WHV_X64_APIC_INIT_SIPI_CONTEXT, |
| pub ApicWrite: WHV_X64_APIC_WRITE_CONTEXT, |
| pub SynicSintDeliverable: WHV_SYNIC_SINT_DELIVERABLE_CONTEXT, |
| } |
| impl ::core::marker::Copy for WHV_RUN_VP_EXIT_CONTEXT_0 {} |
| impl ::core::clone::Clone for WHV_RUN_VP_EXIT_CONTEXT_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_RUN_VP_EXIT_CONTEXT_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_RUN_VP_EXIT_CONTEXT_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_SCHEDULER_FEATURES { |
| pub Anonymous: WHV_SCHEDULER_FEATURES_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_SCHEDULER_FEATURES {} |
| impl ::core::clone::Clone for WHV_SCHEDULER_FEATURES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_SCHEDULER_FEATURES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_SCHEDULER_FEATURES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_SCHEDULER_FEATURES_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_SCHEDULER_FEATURES_0 {} |
| impl ::core::clone::Clone for WHV_SCHEDULER_FEATURES_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_SCHEDULER_FEATURES_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_SCHEDULER_FEATURES_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_SCHEDULER_FEATURES_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_SCHEDULER_FEATURES_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_SCHEDULER_FEATURES_0 {} |
| impl ::core::default::Default for WHV_SCHEDULER_FEATURES_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct WHV_SRIOV_RESOURCE_DESCRIPTOR { |
| pub PnpInstanceId: [u16; 200], |
| pub VirtualFunctionId: super::super::Foundation::LUID, |
| pub VirtualFunctionIndex: u16, |
| pub Reserved: u16, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for WHV_SRIOV_RESOURCE_DESCRIPTOR {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for WHV_SRIOV_RESOURCE_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for WHV_SRIOV_RESOURCE_DESCRIPTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_SRIOV_RESOURCE_DESCRIPTOR").field("PnpInstanceId", &self.PnpInstanceId).field("VirtualFunctionId", &self.VirtualFunctionId).field("VirtualFunctionIndex", &self.VirtualFunctionIndex).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for WHV_SRIOV_RESOURCE_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for WHV_SRIOV_RESOURCE_DESCRIPTOR { |
| fn eq(&self, other: &Self) -> bool { |
| self.PnpInstanceId == other.PnpInstanceId && self.VirtualFunctionId == other.VirtualFunctionId && self.VirtualFunctionIndex == other.VirtualFunctionIndex && self.Reserved == other.Reserved |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for WHV_SRIOV_RESOURCE_DESCRIPTOR {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for WHV_SRIOV_RESOURCE_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_SYNIC_EVENT_PARAMETERS { |
| pub VpIndex: u32, |
| pub TargetSint: u8, |
| pub Reserved: u8, |
| pub FlagNumber: u16, |
| } |
| impl ::core::marker::Copy for WHV_SYNIC_EVENT_PARAMETERS {} |
| impl ::core::clone::Clone for WHV_SYNIC_EVENT_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_SYNIC_EVENT_PARAMETERS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_SYNIC_EVENT_PARAMETERS").field("VpIndex", &self.VpIndex).field("TargetSint", &self.TargetSint).field("Reserved", &self.Reserved).field("FlagNumber", &self.FlagNumber).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_SYNIC_EVENT_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_SYNIC_EVENT_PARAMETERS { |
| fn eq(&self, other: &Self) -> bool { |
| self.VpIndex == other.VpIndex && self.TargetSint == other.TargetSint && self.Reserved == other.Reserved && self.FlagNumber == other.FlagNumber |
| } |
| } |
| impl ::core::cmp::Eq for WHV_SYNIC_EVENT_PARAMETERS {} |
| impl ::core::default::Default for WHV_SYNIC_EVENT_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_SYNIC_SINT_DELIVERABLE_CONTEXT { |
| pub DeliverableSints: u16, |
| pub Reserved1: u16, |
| pub Reserved2: u32, |
| } |
| impl ::core::marker::Copy for WHV_SYNIC_SINT_DELIVERABLE_CONTEXT {} |
| impl ::core::clone::Clone for WHV_SYNIC_SINT_DELIVERABLE_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_SYNIC_SINT_DELIVERABLE_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_SYNIC_SINT_DELIVERABLE_CONTEXT").field("DeliverableSints", &self.DeliverableSints).field("Reserved1", &self.Reserved1).field("Reserved2", &self.Reserved2).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_SYNIC_SINT_DELIVERABLE_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_SYNIC_SINT_DELIVERABLE_CONTEXT { |
| fn eq(&self, other: &Self) -> bool { |
| self.DeliverableSints == other.DeliverableSints && self.Reserved1 == other.Reserved1 && self.Reserved2 == other.Reserved2 |
| } |
| } |
| impl ::core::cmp::Eq for WHV_SYNIC_SINT_DELIVERABLE_CONTEXT {} |
| impl ::core::default::Default for WHV_SYNIC_SINT_DELIVERABLE_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_SYNTHETIC_PROCESSOR_FEATURES { |
| pub Anonymous: WHV_SYNTHETIC_PROCESSOR_FEATURES_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES {} |
| impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_SYNTHETIC_PROCESSOR_FEATURES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_SYNTHETIC_PROCESSOR_FEATURES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_SYNTHETIC_PROCESSOR_FEATURES_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES_0 {} |
| impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_SYNTHETIC_PROCESSOR_FEATURES_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_SYNTHETIC_PROCESSOR_FEATURES_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_SYNTHETIC_PROCESSOR_FEATURES_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_SYNTHETIC_PROCESSOR_FEATURES_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_SYNTHETIC_PROCESSOR_FEATURES_0 {} |
| impl ::core::default::Default for WHV_SYNTHETIC_PROCESSOR_FEATURES_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS { |
| pub BanksCount: u32, |
| pub Reserved0: u32, |
| pub Anonymous: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0, |
| } |
| impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS {} |
| impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0 { |
| pub Anonymous: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0, |
| pub AsUINT64: [u64; 1], |
| } |
| impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0 {} |
| impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0 { |
| pub Bank0: WHV_SYNTHETIC_PROCESSOR_FEATURES, |
| } |
| impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0 {} |
| impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_TRANSLATE_GVA_RESULT { |
| pub ResultCode: WHV_TRANSLATE_GVA_RESULT_CODE, |
| pub Reserved: u32, |
| } |
| impl ::core::marker::Copy for WHV_TRANSLATE_GVA_RESULT {} |
| impl ::core::clone::Clone for WHV_TRANSLATE_GVA_RESULT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_TRANSLATE_GVA_RESULT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_TRANSLATE_GVA_RESULT").field("ResultCode", &self.ResultCode).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_TRANSLATE_GVA_RESULT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_TRANSLATE_GVA_RESULT { |
| fn eq(&self, other: &Self) -> bool { |
| self.ResultCode == other.ResultCode && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for WHV_TRANSLATE_GVA_RESULT {} |
| impl ::core::default::Default for WHV_TRANSLATE_GVA_RESULT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_TRIGGER_PARAMETERS { |
| pub TriggerType: WHV_TRIGGER_TYPE, |
| pub Reserved: u32, |
| pub Anonymous: WHV_TRIGGER_PARAMETERS_0, |
| } |
| impl ::core::marker::Copy for WHV_TRIGGER_PARAMETERS {} |
| impl ::core::clone::Clone for WHV_TRIGGER_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_TRIGGER_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_TRIGGER_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_TRIGGER_PARAMETERS_0 { |
| pub Interrupt: WHV_INTERRUPT_CONTROL, |
| pub SynicEvent: WHV_SYNIC_EVENT_PARAMETERS, |
| pub DeviceInterrupt: WHV_TRIGGER_PARAMETERS_0_0, |
| } |
| impl ::core::marker::Copy for WHV_TRIGGER_PARAMETERS_0 {} |
| impl ::core::clone::Clone for WHV_TRIGGER_PARAMETERS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_TRIGGER_PARAMETERS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_TRIGGER_PARAMETERS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_TRIGGER_PARAMETERS_0_0 { |
| pub LogicalDeviceId: u64, |
| pub MsiAddress: u64, |
| pub MsiData: u32, |
| pub Reserved: u32, |
| } |
| impl ::core::marker::Copy for WHV_TRIGGER_PARAMETERS_0_0 {} |
| impl ::core::clone::Clone for WHV_TRIGGER_PARAMETERS_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_TRIGGER_PARAMETERS_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_TRIGGER_PARAMETERS_0_0").field("LogicalDeviceId", &self.LogicalDeviceId).field("MsiAddress", &self.MsiAddress).field("MsiData", &self.MsiData).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_TRIGGER_PARAMETERS_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_TRIGGER_PARAMETERS_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.LogicalDeviceId == other.LogicalDeviceId && self.MsiAddress == other.MsiAddress && self.MsiData == other.MsiData && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for WHV_TRIGGER_PARAMETERS_0_0 {} |
| impl ::core::default::Default for WHV_TRIGGER_PARAMETERS_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_UINT128 { |
| pub Anonymous: WHV_UINT128_0, |
| pub Dword: [u32; 4], |
| } |
| impl ::core::marker::Copy for WHV_UINT128 {} |
| impl ::core::clone::Clone for WHV_UINT128 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_UINT128 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_UINT128 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_UINT128_0 { |
| pub Low64: u64, |
| pub High64: u64, |
| } |
| impl ::core::marker::Copy for WHV_UINT128_0 {} |
| impl ::core::clone::Clone for WHV_UINT128_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_UINT128_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_UINT128_0").field("Low64", &self.Low64).field("High64", &self.High64).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_UINT128_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_UINT128_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.Low64 == other.Low64 && self.High64 == other.High64 |
| } |
| } |
| impl ::core::cmp::Eq for WHV_UINT128_0 {} |
| impl ::core::default::Default for WHV_UINT128_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VIRTUAL_PROCESSOR_PROPERTY { |
| pub PropertyCode: WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE, |
| pub Reserved: u32, |
| pub Anonymous: WHV_VIRTUAL_PROCESSOR_PROPERTY_0, |
| } |
| impl ::core::marker::Copy for WHV_VIRTUAL_PROCESSOR_PROPERTY {} |
| impl ::core::clone::Clone for WHV_VIRTUAL_PROCESSOR_PROPERTY { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VIRTUAL_PROCESSOR_PROPERTY { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_VIRTUAL_PROCESSOR_PROPERTY { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_VIRTUAL_PROCESSOR_PROPERTY_0 { |
| pub NumaNode: u16, |
| pub Padding: u64, |
| } |
| impl ::core::marker::Copy for WHV_VIRTUAL_PROCESSOR_PROPERTY_0 {} |
| impl ::core::clone::Clone for WHV_VIRTUAL_PROCESSOR_PROPERTY_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VIRTUAL_PROCESSOR_PROPERTY_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_VIRTUAL_PROCESSOR_PROPERTY_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VPCI_DEVICE_NOTIFICATION { |
| pub NotificationType: WHV_VPCI_DEVICE_NOTIFICATION_TYPE, |
| pub Reserved1: u32, |
| pub Anonymous: WHV_VPCI_DEVICE_NOTIFICATION_0, |
| } |
| impl ::core::marker::Copy for WHV_VPCI_DEVICE_NOTIFICATION {} |
| impl ::core::clone::Clone for WHV_VPCI_DEVICE_NOTIFICATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_DEVICE_NOTIFICATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_VPCI_DEVICE_NOTIFICATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_VPCI_DEVICE_NOTIFICATION_0 { |
| pub Reserved2: u64, |
| } |
| impl ::core::marker::Copy for WHV_VPCI_DEVICE_NOTIFICATION_0 {} |
| impl ::core::clone::Clone for WHV_VPCI_DEVICE_NOTIFICATION_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_DEVICE_NOTIFICATION_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_VPCI_DEVICE_NOTIFICATION_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VPCI_DEVICE_REGISTER { |
| pub Location: WHV_VPCI_DEVICE_REGISTER_SPACE, |
| pub SizeInBytes: u32, |
| pub OffsetInBytes: u64, |
| } |
| impl ::core::marker::Copy for WHV_VPCI_DEVICE_REGISTER {} |
| impl ::core::clone::Clone for WHV_VPCI_DEVICE_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_DEVICE_REGISTER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_VPCI_DEVICE_REGISTER").field("Location", &self.Location).field("SizeInBytes", &self.SizeInBytes).field("OffsetInBytes", &self.OffsetInBytes).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_DEVICE_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_VPCI_DEVICE_REGISTER { |
| fn eq(&self, other: &Self) -> bool { |
| self.Location == other.Location && self.SizeInBytes == other.SizeInBytes && self.OffsetInBytes == other.OffsetInBytes |
| } |
| } |
| impl ::core::cmp::Eq for WHV_VPCI_DEVICE_REGISTER {} |
| impl ::core::default::Default for WHV_VPCI_DEVICE_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VPCI_HARDWARE_IDS { |
| pub VendorID: u16, |
| pub DeviceID: u16, |
| pub RevisionID: u8, |
| pub ProgIf: u8, |
| pub SubClass: u8, |
| pub BaseClass: u8, |
| pub SubVendorID: u16, |
| pub SubSystemID: u16, |
| } |
| impl ::core::marker::Copy for WHV_VPCI_HARDWARE_IDS {} |
| impl ::core::clone::Clone for WHV_VPCI_HARDWARE_IDS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_HARDWARE_IDS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_VPCI_HARDWARE_IDS").field("VendorID", &self.VendorID).field("DeviceID", &self.DeviceID).field("RevisionID", &self.RevisionID).field("ProgIf", &self.ProgIf).field("SubClass", &self.SubClass).field("BaseClass", &self.BaseClass).field("SubVendorID", &self.SubVendorID).field("SubSystemID", &self.SubSystemID).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_HARDWARE_IDS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_VPCI_HARDWARE_IDS { |
| fn eq(&self, other: &Self) -> bool { |
| self.VendorID == other.VendorID && self.DeviceID == other.DeviceID && self.RevisionID == other.RevisionID && self.ProgIf == other.ProgIf && self.SubClass == other.SubClass && self.BaseClass == other.BaseClass && self.SubVendorID == other.SubVendorID && self.SubSystemID == other.SubSystemID |
| } |
| } |
| impl ::core::cmp::Eq for WHV_VPCI_HARDWARE_IDS {} |
| impl ::core::default::Default for WHV_VPCI_HARDWARE_IDS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VPCI_INTERRUPT_TARGET { |
| pub Vector: u32, |
| pub Flags: WHV_VPCI_INTERRUPT_TARGET_FLAGS, |
| pub ProcessorCount: u32, |
| pub Processors: [u32; 1], |
| } |
| impl ::core::marker::Copy for WHV_VPCI_INTERRUPT_TARGET {} |
| impl ::core::clone::Clone for WHV_VPCI_INTERRUPT_TARGET { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_INTERRUPT_TARGET { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_VPCI_INTERRUPT_TARGET").field("Vector", &self.Vector).field("Flags", &self.Flags).field("ProcessorCount", &self.ProcessorCount).field("Processors", &self.Processors).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_INTERRUPT_TARGET { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_VPCI_INTERRUPT_TARGET { |
| fn eq(&self, other: &Self) -> bool { |
| self.Vector == other.Vector && self.Flags == other.Flags && self.ProcessorCount == other.ProcessorCount && self.Processors == other.Processors |
| } |
| } |
| impl ::core::cmp::Eq for WHV_VPCI_INTERRUPT_TARGET {} |
| impl ::core::default::Default for WHV_VPCI_INTERRUPT_TARGET { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VPCI_MMIO_MAPPING { |
| pub Location: WHV_VPCI_DEVICE_REGISTER_SPACE, |
| pub Flags: WHV_VPCI_MMIO_RANGE_FLAGS, |
| pub SizeInBytes: u64, |
| pub OffsetInBytes: u64, |
| pub VirtualAddress: *mut ::core::ffi::c_void, |
| } |
| impl ::core::marker::Copy for WHV_VPCI_MMIO_MAPPING {} |
| impl ::core::clone::Clone for WHV_VPCI_MMIO_MAPPING { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_MMIO_MAPPING { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_VPCI_MMIO_MAPPING").field("Location", &self.Location).field("Flags", &self.Flags).field("SizeInBytes", &self.SizeInBytes).field("OffsetInBytes", &self.OffsetInBytes).field("VirtualAddress", &self.VirtualAddress).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_MMIO_MAPPING { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_VPCI_MMIO_MAPPING { |
| fn eq(&self, other: &Self) -> bool { |
| self.Location == other.Location && self.Flags == other.Flags && self.SizeInBytes == other.SizeInBytes && self.OffsetInBytes == other.OffsetInBytes && self.VirtualAddress == other.VirtualAddress |
| } |
| } |
| impl ::core::cmp::Eq for WHV_VPCI_MMIO_MAPPING {} |
| impl ::core::default::Default for WHV_VPCI_MMIO_MAPPING { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VPCI_PROBED_BARS { |
| pub Value: [u32; 6], |
| } |
| impl ::core::marker::Copy for WHV_VPCI_PROBED_BARS {} |
| impl ::core::clone::Clone for WHV_VPCI_PROBED_BARS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_VPCI_PROBED_BARS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_VPCI_PROBED_BARS").field("Value", &self.Value).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VPCI_PROBED_BARS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_VPCI_PROBED_BARS { |
| fn eq(&self, other: &Self) -> bool { |
| self.Value == other.Value |
| } |
| } |
| impl ::core::cmp::Eq for WHV_VPCI_PROBED_BARS {} |
| impl ::core::default::Default for WHV_VPCI_PROBED_BARS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VP_EXCEPTION_CONTEXT { |
| pub InstructionByteCount: u8, |
| pub Reserved: [u8; 3], |
| pub InstructionBytes: [u8; 16], |
| pub ExceptionInfo: WHV_VP_EXCEPTION_INFO, |
| pub ExceptionType: u8, |
| pub Reserved2: [u8; 3], |
| pub ErrorCode: u32, |
| pub ExceptionParameter: u64, |
| } |
| impl ::core::marker::Copy for WHV_VP_EXCEPTION_CONTEXT {} |
| impl ::core::clone::Clone for WHV_VP_EXCEPTION_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VP_EXCEPTION_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_VP_EXCEPTION_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_VP_EXCEPTION_INFO { |
| pub Anonymous: WHV_VP_EXCEPTION_INFO_0, |
| pub AsUINT32: u32, |
| } |
| impl ::core::marker::Copy for WHV_VP_EXCEPTION_INFO {} |
| impl ::core::clone::Clone for WHV_VP_EXCEPTION_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VP_EXCEPTION_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_VP_EXCEPTION_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VP_EXCEPTION_INFO_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for WHV_VP_EXCEPTION_INFO_0 {} |
| impl ::core::clone::Clone for WHV_VP_EXCEPTION_INFO_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_VP_EXCEPTION_INFO_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_VP_EXCEPTION_INFO_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VP_EXCEPTION_INFO_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_VP_EXCEPTION_INFO_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_VP_EXCEPTION_INFO_0 {} |
| impl ::core::default::Default for WHV_VP_EXCEPTION_INFO_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_VP_EXIT_CONTEXT { |
| pub ExecutionState: WHV_X64_VP_EXECUTION_STATE, |
| pub _bitfield: u8, |
| pub Reserved: u8, |
| pub Reserved2: u32, |
| pub Cs: WHV_X64_SEGMENT_REGISTER, |
| pub Rip: u64, |
| pub Rflags: u64, |
| } |
| impl ::core::marker::Copy for WHV_VP_EXIT_CONTEXT {} |
| impl ::core::clone::Clone for WHV_VP_EXIT_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_VP_EXIT_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_VP_EXIT_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_APIC_EOI_CONTEXT { |
| pub InterruptVector: u32, |
| } |
| impl ::core::marker::Copy for WHV_X64_APIC_EOI_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_APIC_EOI_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_APIC_EOI_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_APIC_EOI_CONTEXT").field("InterruptVector", &self.InterruptVector).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_APIC_EOI_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_APIC_EOI_CONTEXT { |
| fn eq(&self, other: &Self) -> bool { |
| self.InterruptVector == other.InterruptVector |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_APIC_EOI_CONTEXT {} |
| impl ::core::default::Default for WHV_X64_APIC_EOI_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_APIC_INIT_SIPI_CONTEXT { |
| pub ApicIcr: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_APIC_INIT_SIPI_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_APIC_INIT_SIPI_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_APIC_INIT_SIPI_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_APIC_INIT_SIPI_CONTEXT").field("ApicIcr", &self.ApicIcr).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_APIC_INIT_SIPI_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_APIC_INIT_SIPI_CONTEXT { |
| fn eq(&self, other: &Self) -> bool { |
| self.ApicIcr == other.ApicIcr |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_APIC_INIT_SIPI_CONTEXT {} |
| impl ::core::default::Default for WHV_X64_APIC_INIT_SIPI_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_APIC_SMI_CONTEXT { |
| pub ApicIcr: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_APIC_SMI_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_APIC_SMI_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_APIC_SMI_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_APIC_SMI_CONTEXT").field("ApicIcr", &self.ApicIcr).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_APIC_SMI_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_APIC_SMI_CONTEXT { |
| fn eq(&self, other: &Self) -> bool { |
| self.ApicIcr == other.ApicIcr |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_APIC_SMI_CONTEXT {} |
| impl ::core::default::Default for WHV_X64_APIC_SMI_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_APIC_WRITE_CONTEXT { |
| pub Type: WHV_X64_APIC_WRITE_TYPE, |
| pub Reserved: u32, |
| pub WriteValue: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_APIC_WRITE_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_APIC_WRITE_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_APIC_WRITE_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_APIC_WRITE_CONTEXT").field("Type", &self.Type).field("Reserved", &self.Reserved).field("WriteValue", &self.WriteValue).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_APIC_WRITE_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_APIC_WRITE_CONTEXT { |
| fn eq(&self, other: &Self) -> bool { |
| self.Type == other.Type && self.Reserved == other.Reserved && self.WriteValue == other.WriteValue |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_APIC_WRITE_CONTEXT {} |
| impl ::core::default::Default for WHV_X64_APIC_WRITE_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_CPUID_ACCESS_CONTEXT { |
| pub Rax: u64, |
| pub Rcx: u64, |
| pub Rdx: u64, |
| pub Rbx: u64, |
| pub DefaultResultRax: u64, |
| pub DefaultResultRcx: u64, |
| pub DefaultResultRdx: u64, |
| pub DefaultResultRbx: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_CPUID_ACCESS_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_CPUID_ACCESS_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_CPUID_ACCESS_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_CPUID_ACCESS_CONTEXT").field("Rax", &self.Rax).field("Rcx", &self.Rcx).field("Rdx", &self.Rdx).field("Rbx", &self.Rbx).field("DefaultResultRax", &self.DefaultResultRax).field("DefaultResultRcx", &self.DefaultResultRcx).field("DefaultResultRdx", &self.DefaultResultRdx).field("DefaultResultRbx", &self.DefaultResultRbx).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_CPUID_ACCESS_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_CPUID_ACCESS_CONTEXT { |
| fn eq(&self, other: &Self) -> bool { |
| self.Rax == other.Rax && self.Rcx == other.Rcx && self.Rdx == other.Rdx && self.Rbx == other.Rbx && self.DefaultResultRax == other.DefaultResultRax && self.DefaultResultRcx == other.DefaultResultRcx && self.DefaultResultRdx == other.DefaultResultRdx && self.DefaultResultRbx == other.DefaultResultRbx |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_CPUID_ACCESS_CONTEXT {} |
| impl ::core::default::Default for WHV_X64_CPUID_ACCESS_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_CPUID_RESULT { |
| pub Function: u32, |
| pub Reserved: [u32; 3], |
| pub Eax: u32, |
| pub Ebx: u32, |
| pub Ecx: u32, |
| pub Edx: u32, |
| } |
| impl ::core::marker::Copy for WHV_X64_CPUID_RESULT {} |
| impl ::core::clone::Clone for WHV_X64_CPUID_RESULT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_CPUID_RESULT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_CPUID_RESULT").field("Function", &self.Function).field("Reserved", &self.Reserved).field("Eax", &self.Eax).field("Ebx", &self.Ebx).field("Ecx", &self.Ecx).field("Edx", &self.Edx).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_CPUID_RESULT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_CPUID_RESULT { |
| fn eq(&self, other: &Self) -> bool { |
| self.Function == other.Function && self.Reserved == other.Reserved && self.Eax == other.Eax && self.Ebx == other.Ebx && self.Ecx == other.Ecx && self.Edx == other.Edx |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_CPUID_RESULT {} |
| impl ::core::default::Default for WHV_X64_CPUID_RESULT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_CPUID_RESULT2 { |
| pub Function: u32, |
| pub Index: u32, |
| pub VpIndex: u32, |
| pub Flags: WHV_X64_CPUID_RESULT2_FLAGS, |
| pub Output: WHV_CPUID_OUTPUT, |
| pub Mask: WHV_CPUID_OUTPUT, |
| } |
| impl ::core::marker::Copy for WHV_X64_CPUID_RESULT2 {} |
| impl ::core::clone::Clone for WHV_X64_CPUID_RESULT2 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_CPUID_RESULT2 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_CPUID_RESULT2").field("Function", &self.Function).field("Index", &self.Index).field("VpIndex", &self.VpIndex).field("Flags", &self.Flags).field("Output", &self.Output).field("Mask", &self.Mask).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_CPUID_RESULT2 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_CPUID_RESULT2 { |
| fn eq(&self, other: &Self) -> bool { |
| self.Function == other.Function && self.Index == other.Index && self.VpIndex == other.VpIndex && self.Flags == other.Flags && self.Output == other.Output && self.Mask == other.Mask |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_CPUID_RESULT2 {} |
| impl ::core::default::Default for WHV_X64_CPUID_RESULT2 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER { |
| pub Anonymous: WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER {} |
| impl ::core::clone::Clone for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 {} |
| impl ::core::clone::Clone for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 {} |
| impl ::core::default::Default for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_FP_CONTROL_STATUS_REGISTER { |
| pub Anonymous: WHV_X64_FP_CONTROL_STATUS_REGISTER_0, |
| pub AsUINT128: WHV_UINT128, |
| } |
| impl ::core::marker::Copy for WHV_X64_FP_CONTROL_STATUS_REGISTER {} |
| impl ::core::clone::Clone for WHV_X64_FP_CONTROL_STATUS_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_FP_CONTROL_STATUS_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_FP_CONTROL_STATUS_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_FP_CONTROL_STATUS_REGISTER_0 { |
| pub FpControl: u16, |
| pub FpStatus: u16, |
| pub FpTag: u8, |
| pub Reserved: u8, |
| pub LastFpOp: u16, |
| pub Anonymous: WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0, |
| } |
| impl ::core::marker::Copy for WHV_X64_FP_CONTROL_STATUS_REGISTER_0 {} |
| impl ::core::clone::Clone for WHV_X64_FP_CONTROL_STATUS_REGISTER_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_FP_CONTROL_STATUS_REGISTER_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_FP_CONTROL_STATUS_REGISTER_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0 { |
| pub LastFpRip: u64, |
| pub Anonymous: WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0, |
| } |
| impl ::core::marker::Copy for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0 {} |
| impl ::core::clone::Clone for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 { |
| pub LastFpEip: u32, |
| pub LastFpCs: u16, |
| pub Reserved2: u16, |
| } |
| impl ::core::marker::Copy for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 {} |
| impl ::core::clone::Clone for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0").field("LastFpEip", &self.LastFpEip).field("LastFpCs", &self.LastFpCs).field("Reserved2", &self.Reserved2).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.LastFpEip == other.LastFpEip && self.LastFpCs == other.LastFpCs && self.Reserved2 == other.Reserved2 |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 {} |
| impl ::core::default::Default for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_FP_REGISTER { |
| pub Anonymous: WHV_X64_FP_REGISTER_0, |
| pub AsUINT128: WHV_UINT128, |
| } |
| impl ::core::marker::Copy for WHV_X64_FP_REGISTER {} |
| impl ::core::clone::Clone for WHV_X64_FP_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_FP_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_FP_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_FP_REGISTER_0 { |
| pub Mantissa: u64, |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_FP_REGISTER_0 {} |
| impl ::core::clone::Clone for WHV_X64_FP_REGISTER_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_FP_REGISTER_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_FP_REGISTER_0").field("Mantissa", &self.Mantissa).field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_FP_REGISTER_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_FP_REGISTER_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.Mantissa == other.Mantissa && self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_FP_REGISTER_0 {} |
| impl ::core::default::Default for WHV_X64_FP_REGISTER_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT { |
| pub DeliverableType: WHV_X64_PENDING_INTERRUPTION_TYPE, |
| } |
| impl ::core::marker::Copy for WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT").field("DeliverableType", &self.DeliverableType).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT { |
| fn eq(&self, other: &Self) -> bool { |
| self.DeliverableType == other.DeliverableType |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT {} |
| impl ::core::default::Default for WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_INTERRUPT_STATE_REGISTER { |
| pub Anonymous: WHV_X64_INTERRUPT_STATE_REGISTER_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_INTERRUPT_STATE_REGISTER {} |
| impl ::core::clone::Clone for WHV_X64_INTERRUPT_STATE_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_INTERRUPT_STATE_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_INTERRUPT_STATE_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_INTERRUPT_STATE_REGISTER_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_INTERRUPT_STATE_REGISTER_0 {} |
| impl ::core::clone::Clone for WHV_X64_INTERRUPT_STATE_REGISTER_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_INTERRUPT_STATE_REGISTER_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_INTERRUPT_STATE_REGISTER_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_INTERRUPT_STATE_REGISTER_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_INTERRUPT_STATE_REGISTER_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_INTERRUPT_STATE_REGISTER_0 {} |
| impl ::core::default::Default for WHV_X64_INTERRUPT_STATE_REGISTER_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_IO_PORT_ACCESS_CONTEXT { |
| pub InstructionByteCount: u8, |
| pub Reserved: [u8; 3], |
| pub InstructionBytes: [u8; 16], |
| pub AccessInfo: WHV_X64_IO_PORT_ACCESS_INFO, |
| pub PortNumber: u16, |
| pub Reserved2: [u16; 3], |
| pub Rax: u64, |
| pub Rcx: u64, |
| pub Rsi: u64, |
| pub Rdi: u64, |
| pub Ds: WHV_X64_SEGMENT_REGISTER, |
| pub Es: WHV_X64_SEGMENT_REGISTER, |
| } |
| impl ::core::marker::Copy for WHV_X64_IO_PORT_ACCESS_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_IO_PORT_ACCESS_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_IO_PORT_ACCESS_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_IO_PORT_ACCESS_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_IO_PORT_ACCESS_INFO { |
| pub Anonymous: WHV_X64_IO_PORT_ACCESS_INFO_0, |
| pub AsUINT32: u32, |
| } |
| impl ::core::marker::Copy for WHV_X64_IO_PORT_ACCESS_INFO {} |
| impl ::core::clone::Clone for WHV_X64_IO_PORT_ACCESS_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_IO_PORT_ACCESS_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_IO_PORT_ACCESS_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_IO_PORT_ACCESS_INFO_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for WHV_X64_IO_PORT_ACCESS_INFO_0 {} |
| impl ::core::clone::Clone for WHV_X64_IO_PORT_ACCESS_INFO_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_IO_PORT_ACCESS_INFO_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_IO_PORT_ACCESS_INFO_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_IO_PORT_ACCESS_INFO_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_IO_PORT_ACCESS_INFO_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_IO_PORT_ACCESS_INFO_0 {} |
| impl ::core::default::Default for WHV_X64_IO_PORT_ACCESS_INFO_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_MSR_ACCESS_CONTEXT { |
| pub AccessInfo: WHV_X64_MSR_ACCESS_INFO, |
| pub MsrNumber: u32, |
| pub Rax: u64, |
| pub Rdx: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_MSR_ACCESS_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_MSR_ACCESS_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_MSR_ACCESS_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_MSR_ACCESS_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_MSR_ACCESS_INFO { |
| pub Anonymous: WHV_X64_MSR_ACCESS_INFO_0, |
| pub AsUINT32: u32, |
| } |
| impl ::core::marker::Copy for WHV_X64_MSR_ACCESS_INFO {} |
| impl ::core::clone::Clone for WHV_X64_MSR_ACCESS_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_MSR_ACCESS_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_MSR_ACCESS_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_MSR_ACCESS_INFO_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for WHV_X64_MSR_ACCESS_INFO_0 {} |
| impl ::core::clone::Clone for WHV_X64_MSR_ACCESS_INFO_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_MSR_ACCESS_INFO_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_MSR_ACCESS_INFO_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_MSR_ACCESS_INFO_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_MSR_ACCESS_INFO_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_MSR_ACCESS_INFO_0 {} |
| impl ::core::default::Default for WHV_X64_MSR_ACCESS_INFO_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_MSR_EXIT_BITMAP { |
| pub AsUINT64: u64, |
| pub Anonymous: WHV_X64_MSR_EXIT_BITMAP_0, |
| } |
| impl ::core::marker::Copy for WHV_X64_MSR_EXIT_BITMAP {} |
| impl ::core::clone::Clone for WHV_X64_MSR_EXIT_BITMAP { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_MSR_EXIT_BITMAP { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_MSR_EXIT_BITMAP { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_MSR_EXIT_BITMAP_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_MSR_EXIT_BITMAP_0 {} |
| impl ::core::clone::Clone for WHV_X64_MSR_EXIT_BITMAP_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_MSR_EXIT_BITMAP_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_MSR_EXIT_BITMAP_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_MSR_EXIT_BITMAP_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_MSR_EXIT_BITMAP_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_MSR_EXIT_BITMAP_0 {} |
| impl ::core::default::Default for WHV_X64_MSR_EXIT_BITMAP_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_PENDING_DEBUG_EXCEPTION { |
| pub AsUINT64: u64, |
| pub Anonymous: WHV_X64_PENDING_DEBUG_EXCEPTION_0, |
| } |
| impl ::core::marker::Copy for WHV_X64_PENDING_DEBUG_EXCEPTION {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_DEBUG_EXCEPTION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_DEBUG_EXCEPTION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_PENDING_DEBUG_EXCEPTION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_PENDING_DEBUG_EXCEPTION_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_PENDING_DEBUG_EXCEPTION_0 {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_DEBUG_EXCEPTION_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_PENDING_DEBUG_EXCEPTION_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_PENDING_DEBUG_EXCEPTION_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_DEBUG_EXCEPTION_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_PENDING_DEBUG_EXCEPTION_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_PENDING_DEBUG_EXCEPTION_0 {} |
| impl ::core::default::Default for WHV_X64_PENDING_DEBUG_EXCEPTION_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_PENDING_EXCEPTION_EVENT { |
| pub Anonymous: WHV_X64_PENDING_EXCEPTION_EVENT_0, |
| pub AsUINT128: WHV_UINT128, |
| } |
| impl ::core::marker::Copy for WHV_X64_PENDING_EXCEPTION_EVENT {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_EXCEPTION_EVENT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_EXCEPTION_EVENT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_PENDING_EXCEPTION_EVENT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_PENDING_EXCEPTION_EVENT_0 { |
| pub _bitfield: u32, |
| pub ErrorCode: u32, |
| pub ExceptionParameter: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_PENDING_EXCEPTION_EVENT_0 {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_EXCEPTION_EVENT_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_PENDING_EXCEPTION_EVENT_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_PENDING_EXCEPTION_EVENT_0").field("_bitfield", &self._bitfield).field("ErrorCode", &self.ErrorCode).field("ExceptionParameter", &self.ExceptionParameter).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_EXCEPTION_EVENT_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_PENDING_EXCEPTION_EVENT_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield && self.ErrorCode == other.ErrorCode && self.ExceptionParameter == other.ExceptionParameter |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_PENDING_EXCEPTION_EVENT_0 {} |
| impl ::core::default::Default for WHV_X64_PENDING_EXCEPTION_EVENT_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_PENDING_EXT_INT_EVENT { |
| pub Anonymous: WHV_X64_PENDING_EXT_INT_EVENT_0, |
| pub AsUINT128: WHV_UINT128, |
| } |
| impl ::core::marker::Copy for WHV_X64_PENDING_EXT_INT_EVENT {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_EXT_INT_EVENT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_EXT_INT_EVENT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_PENDING_EXT_INT_EVENT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_PENDING_EXT_INT_EVENT_0 { |
| pub _bitfield: u64, |
| pub Reserved2: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_PENDING_EXT_INT_EVENT_0 {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_EXT_INT_EVENT_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_PENDING_EXT_INT_EVENT_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_PENDING_EXT_INT_EVENT_0").field("_bitfield", &self._bitfield).field("Reserved2", &self.Reserved2).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_EXT_INT_EVENT_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_PENDING_EXT_INT_EVENT_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield && self.Reserved2 == other.Reserved2 |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_PENDING_EXT_INT_EVENT_0 {} |
| impl ::core::default::Default for WHV_X64_PENDING_EXT_INT_EVENT_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_PENDING_INTERRUPTION_REGISTER { |
| pub Anonymous: WHV_X64_PENDING_INTERRUPTION_REGISTER_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_PENDING_INTERRUPTION_REGISTER {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_INTERRUPTION_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_INTERRUPTION_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_PENDING_INTERRUPTION_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_PENDING_INTERRUPTION_REGISTER_0 { |
| pub _bitfield: u32, |
| pub ErrorCode: u32, |
| } |
| impl ::core::marker::Copy for WHV_X64_PENDING_INTERRUPTION_REGISTER_0 {} |
| impl ::core::clone::Clone for WHV_X64_PENDING_INTERRUPTION_REGISTER_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_PENDING_INTERRUPTION_REGISTER_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_PENDING_INTERRUPTION_REGISTER_0").field("_bitfield", &self._bitfield).field("ErrorCode", &self.ErrorCode).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_PENDING_INTERRUPTION_REGISTER_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_PENDING_INTERRUPTION_REGISTER_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield && self.ErrorCode == other.ErrorCode |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_PENDING_INTERRUPTION_REGISTER_0 {} |
| impl ::core::default::Default for WHV_X64_PENDING_INTERRUPTION_REGISTER_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_RDTSC_CONTEXT { |
| pub TscAux: u64, |
| pub VirtualOffset: u64, |
| pub Tsc: u64, |
| pub ReferenceTime: u64, |
| pub RdtscInfo: WHV_X64_RDTSC_INFO, |
| } |
| impl ::core::marker::Copy for WHV_X64_RDTSC_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_RDTSC_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_RDTSC_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_RDTSC_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_RDTSC_INFO { |
| pub Anonymous: WHV_X64_RDTSC_INFO_0, |
| pub AsUINT64: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_RDTSC_INFO {} |
| impl ::core::clone::Clone for WHV_X64_RDTSC_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_RDTSC_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_RDTSC_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_RDTSC_INFO_0 { |
| pub _bitfield: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_RDTSC_INFO_0 {} |
| impl ::core::clone::Clone for WHV_X64_RDTSC_INFO_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_RDTSC_INFO_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_RDTSC_INFO_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_RDTSC_INFO_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_RDTSC_INFO_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_RDTSC_INFO_0 {} |
| impl ::core::default::Default for WHV_X64_RDTSC_INFO_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_SEGMENT_REGISTER { |
| pub Base: u64, |
| pub Limit: u32, |
| pub Selector: u16, |
| pub Anonymous: WHV_X64_SEGMENT_REGISTER_0, |
| } |
| impl ::core::marker::Copy for WHV_X64_SEGMENT_REGISTER {} |
| impl ::core::clone::Clone for WHV_X64_SEGMENT_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_SEGMENT_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_SEGMENT_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_SEGMENT_REGISTER_0 { |
| pub Anonymous: WHV_X64_SEGMENT_REGISTER_0_0, |
| pub Attributes: u16, |
| } |
| impl ::core::marker::Copy for WHV_X64_SEGMENT_REGISTER_0 {} |
| impl ::core::clone::Clone for WHV_X64_SEGMENT_REGISTER_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_SEGMENT_REGISTER_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_SEGMENT_REGISTER_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_SEGMENT_REGISTER_0_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for WHV_X64_SEGMENT_REGISTER_0_0 {} |
| impl ::core::clone::Clone for WHV_X64_SEGMENT_REGISTER_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_SEGMENT_REGISTER_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_SEGMENT_REGISTER_0_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_SEGMENT_REGISTER_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_SEGMENT_REGISTER_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_SEGMENT_REGISTER_0_0 {} |
| impl ::core::default::Default for WHV_X64_SEGMENT_REGISTER_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_TABLE_REGISTER { |
| pub Pad: [u16; 3], |
| pub Limit: u16, |
| pub Base: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_TABLE_REGISTER {} |
| impl ::core::clone::Clone for WHV_X64_TABLE_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_TABLE_REGISTER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_TABLE_REGISTER").field("Pad", &self.Pad).field("Limit", &self.Limit).field("Base", &self.Base).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_TABLE_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_TABLE_REGISTER { |
| fn eq(&self, other: &Self) -> bool { |
| self.Pad == other.Pad && self.Limit == other.Limit && self.Base == other.Base |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_TABLE_REGISTER {} |
| impl ::core::default::Default for WHV_X64_TABLE_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_UNSUPPORTED_FEATURE_CONTEXT { |
| pub FeatureCode: WHV_X64_UNSUPPORTED_FEATURE_CODE, |
| pub Reserved: u32, |
| pub FeatureParameter: u64, |
| } |
| impl ::core::marker::Copy for WHV_X64_UNSUPPORTED_FEATURE_CONTEXT {} |
| impl ::core::clone::Clone for WHV_X64_UNSUPPORTED_FEATURE_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_UNSUPPORTED_FEATURE_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_UNSUPPORTED_FEATURE_CONTEXT").field("FeatureCode", &self.FeatureCode).field("Reserved", &self.Reserved).field("FeatureParameter", &self.FeatureParameter).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_UNSUPPORTED_FEATURE_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_UNSUPPORTED_FEATURE_CONTEXT { |
| fn eq(&self, other: &Self) -> bool { |
| self.FeatureCode == other.FeatureCode && self.Reserved == other.Reserved && self.FeatureParameter == other.FeatureParameter |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_UNSUPPORTED_FEATURE_CONTEXT {} |
| impl ::core::default::Default for WHV_X64_UNSUPPORTED_FEATURE_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_VP_EXECUTION_STATE { |
| pub Anonymous: WHV_X64_VP_EXECUTION_STATE_0, |
| pub AsUINT16: u16, |
| } |
| impl ::core::marker::Copy for WHV_X64_VP_EXECUTION_STATE {} |
| impl ::core::clone::Clone for WHV_X64_VP_EXECUTION_STATE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_VP_EXECUTION_STATE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_VP_EXECUTION_STATE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_VP_EXECUTION_STATE_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for WHV_X64_VP_EXECUTION_STATE_0 {} |
| impl ::core::clone::Clone for WHV_X64_VP_EXECUTION_STATE_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_VP_EXECUTION_STATE_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_VP_EXECUTION_STATE_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_VP_EXECUTION_STATE_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_VP_EXECUTION_STATE_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_VP_EXECUTION_STATE_0 {} |
| impl ::core::default::Default for WHV_X64_VP_EXECUTION_STATE_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_XMM_CONTROL_STATUS_REGISTER { |
| pub Anonymous: WHV_X64_XMM_CONTROL_STATUS_REGISTER_0, |
| pub AsUINT128: WHV_UINT128, |
| } |
| impl ::core::marker::Copy for WHV_X64_XMM_CONTROL_STATUS_REGISTER {} |
| impl ::core::clone::Clone for WHV_X64_XMM_CONTROL_STATUS_REGISTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_XMM_CONTROL_STATUS_REGISTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_XMM_CONTROL_STATUS_REGISTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_XMM_CONTROL_STATUS_REGISTER_0 { |
| pub Anonymous: WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0, |
| pub XmmStatusControl: u32, |
| pub XmmStatusControlMask: u32, |
| } |
| impl ::core::marker::Copy for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0 {} |
| impl ::core::clone::Clone for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub union WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0 { |
| pub LastFpRdp: u64, |
| pub Anonymous: WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0, |
| } |
| impl ::core::marker::Copy for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0 {} |
| impl ::core::clone::Clone for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub struct WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 { |
| pub LastFpDp: u32, |
| pub LastFpDs: u16, |
| pub Reserved: u16, |
| } |
| impl ::core::marker::Copy for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 {} |
| impl ::core::clone::Clone for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0").field("LastFpDp", &self.LastFpDp).field("LastFpDs", &self.LastFpDs).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.LastFpDp == other.LastFpDp && self.LastFpDs == other.LastFpDs && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 {} |
| impl ::core::default::Default for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub type FOUND_IMAGE_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, imageinfo: *const DOS_IMAGE_INFO) -> super::super::Foundation::BOOL>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK = ::core::option::Option<unsafe extern "system" fn(infomessage: ::windows::core::PCSTR) -> ()>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_DEVICE_GET_DETAILS = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, pnpid: *mut HDV_PCI_PNP_ID, probedbarscount: u32, probedbars: *mut u32) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_DEVICE_INITIALIZE = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_DEVICE_SET_CONFIGURATION = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, configurationvaluecount: u32, configurationvalues: *const ::windows::core::PCWSTR) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_DEVICE_START = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_DEVICE_STOP = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void) -> ()>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_DEVICE_TEARDOWN = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void) -> ()>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_READ_CONFIG_SPACE = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, offset: u32, value: *mut u32) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_READ_INTERCEPTED_MEMORY = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, offset: u64, length: u64, value: *mut u8) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_WRITE_CONFIG_SPACE = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, offset: u32, value: u32) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type HDV_PCI_WRITE_INTERCEPTED_MEMORY = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, offset: u64, length: u64, value: *const u8) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type WHV_EMULATOR_GET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, registernames: *const WHV_REGISTER_NAME, registercount: u32, registervalues: *mut WHV_REGISTER_VALUE) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type WHV_EMULATOR_IO_PORT_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, ioaccess: *mut WHV_EMULATOR_IO_ACCESS_INFO) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type WHV_EMULATOR_MEMORY_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, memoryaccess: *mut WHV_EMULATOR_MEMORY_ACCESS_INFO) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type WHV_EMULATOR_SET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, registernames: *const WHV_REGISTER_NAME, registercount: u32, registervalues: *const WHV_REGISTER_VALUE) -> ::windows::core::HRESULT>; |
| #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] |
| pub type WHV_EMULATOR_TRANSLATE_GVA_PAGE_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, gva: u64, translateflags: WHV_TRANSLATE_GVA_FLAGS, translationresult: *mut WHV_TRANSLATE_GVA_RESULT_CODE, gpa: *mut u64) -> ::windows::core::HRESULT>; |
| #[cfg(feature = "implement")] |
| ::core::include!("impl.rs"); |