| #[cfg(feature = "Win32_System_Performance_HardwareCounterProfiling")] |
| pub mod HardwareCounterProfiling; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn BackupPerfRegistryToFileW<P0, P1>(szfilename: P0, szcommentstring: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn BackupPerfRegistryToFileW ( szfilename : ::windows::core::PCWSTR , szcommentstring : ::windows::core::PCWSTR ) -> u32 ); |
| BackupPerfRegistryToFileW(szfilename.into_param().abi(), szcommentstring.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn InstallPerfDllA<P0, P1>(szcomputername: P0, lpinifile: P1, dwflags: usize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn InstallPerfDllA ( szcomputername : ::windows::core::PCSTR , lpinifile : ::windows::core::PCSTR , dwflags : usize ) -> u32 ); |
| InstallPerfDllA(szcomputername.into_param().abi(), lpinifile.into_param().abi(), dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn InstallPerfDllW<P0, P1>(szcomputername: P0, lpinifile: P1, dwflags: usize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn InstallPerfDllW ( szcomputername : ::windows::core::PCWSTR , lpinifile : ::windows::core::PCWSTR , dwflags : usize ) -> u32 ); |
| InstallPerfDllW(szcomputername.into_param().abi(), lpinifile.into_param().abi(), dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn LoadPerfCounterTextStringsA<P0, P1>(lpcommandline: P0, bquietmodearg: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn LoadPerfCounterTextStringsA ( lpcommandline : ::windows::core::PCSTR , bquietmodearg : super::super::Foundation:: BOOL ) -> u32 ); |
| LoadPerfCounterTextStringsA(lpcommandline.into_param().abi(), bquietmodearg.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn LoadPerfCounterTextStringsW<P0, P1>(lpcommandline: P0, bquietmodearg: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn LoadPerfCounterTextStringsW ( lpcommandline : ::windows::core::PCWSTR , bquietmodearg : super::super::Foundation:: BOOL ) -> u32 ); |
| LoadPerfCounterTextStringsW(lpcommandline.into_param().abi(), bquietmodearg.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhAddCounterA<P0>(hquery: isize, szfullcounterpath: P0, dwuserdata: usize, phcounter: *mut isize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhAddCounterA ( hquery : isize , szfullcounterpath : ::windows::core::PCSTR , dwuserdata : usize , phcounter : *mut isize ) -> u32 ); |
| PdhAddCounterA(hquery, szfullcounterpath.into_param().abi(), dwuserdata, phcounter) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhAddCounterW<P0>(hquery: isize, szfullcounterpath: P0, dwuserdata: usize, phcounter: *mut isize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhAddCounterW ( hquery : isize , szfullcounterpath : ::windows::core::PCWSTR , dwuserdata : usize , phcounter : *mut isize ) -> u32 ); |
| PdhAddCounterW(hquery, szfullcounterpath.into_param().abi(), dwuserdata, phcounter) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhAddEnglishCounterA<P0>(hquery: isize, szfullcounterpath: P0, dwuserdata: usize, phcounter: *mut isize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhAddEnglishCounterA ( hquery : isize , szfullcounterpath : ::windows::core::PCSTR , dwuserdata : usize , phcounter : *mut isize ) -> u32 ); |
| PdhAddEnglishCounterA(hquery, szfullcounterpath.into_param().abi(), dwuserdata, phcounter) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhAddEnglishCounterW<P0>(hquery: isize, szfullcounterpath: P0, dwuserdata: usize, phcounter: *mut isize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhAddEnglishCounterW ( hquery : isize , szfullcounterpath : ::windows::core::PCWSTR , dwuserdata : usize , phcounter : *mut isize ) -> u32 ); |
| PdhAddEnglishCounterW(hquery, szfullcounterpath.into_param().abi(), dwuserdata, phcounter) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhBindInputDataSourceA<P0>(phdatasource: *mut isize, logfilenamelist: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhBindInputDataSourceA ( phdatasource : *mut isize , logfilenamelist : ::windows::core::PCSTR ) -> u32 ); |
| PdhBindInputDataSourceA(phdatasource, logfilenamelist.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhBindInputDataSourceW<P0>(phdatasource: *mut isize, logfilenamelist: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhBindInputDataSourceW ( phdatasource : *mut isize , logfilenamelist : ::windows::core::PCWSTR ) -> u32 ); |
| PdhBindInputDataSourceW(phdatasource, logfilenamelist.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhBrowseCountersA(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_A) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhBrowseCountersA ( pbrowsedlgdata : *const PDH_BROWSE_DLG_CONFIG_A ) -> u32 ); |
| PdhBrowseCountersA(pbrowsedlgdata) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhBrowseCountersHA(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_HA) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhBrowseCountersHA ( pbrowsedlgdata : *const PDH_BROWSE_DLG_CONFIG_HA ) -> u32 ); |
| PdhBrowseCountersHA(pbrowsedlgdata) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhBrowseCountersHW(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_HW) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhBrowseCountersHW ( pbrowsedlgdata : *const PDH_BROWSE_DLG_CONFIG_HW ) -> u32 ); |
| PdhBrowseCountersHW(pbrowsedlgdata) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhBrowseCountersW(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_W) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhBrowseCountersW ( pbrowsedlgdata : *const PDH_BROWSE_DLG_CONFIG_W ) -> u32 ); |
| PdhBrowseCountersW(pbrowsedlgdata) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhCalculateCounterFromRawValue(hcounter: isize, dwformat: PDH_FMT, rawvalue1: *const PDH_RAW_COUNTER, rawvalue2: *const PDH_RAW_COUNTER, fmtvalue: *mut PDH_FMT_COUNTERVALUE) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhCalculateCounterFromRawValue ( hcounter : isize , dwformat : PDH_FMT , rawvalue1 : *const PDH_RAW_COUNTER , rawvalue2 : *const PDH_RAW_COUNTER , fmtvalue : *mut PDH_FMT_COUNTERVALUE ) -> u32 ); |
| PdhCalculateCounterFromRawValue(hcounter, dwformat, rawvalue1, rawvalue2, fmtvalue) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhCloseLog(hlog: isize, dwflags: u32) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhCloseLog ( hlog : isize , dwflags : u32 ) -> u32 ); |
| PdhCloseLog(hlog, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhCloseQuery(hquery: isize) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhCloseQuery ( hquery : isize ) -> u32 ); |
| PdhCloseQuery(hquery) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhCollectQueryData(hquery: isize) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhCollectQueryData ( hquery : isize ) -> u32 ); |
| PdhCollectQueryData(hquery) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhCollectQueryDataEx<P0>(hquery: isize, dwintervaltime: u32, hnewdataevent: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhCollectQueryDataEx ( hquery : isize , dwintervaltime : u32 , hnewdataevent : super::super::Foundation:: HANDLE ) -> u32 ); |
| PdhCollectQueryDataEx(hquery, dwintervaltime, hnewdataevent.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhCollectQueryDataWithTime(hquery: isize, plltimestamp: *mut i64) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhCollectQueryDataWithTime ( hquery : isize , plltimestamp : *mut i64 ) -> u32 ); |
| PdhCollectQueryDataWithTime(hquery, plltimestamp) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhComputeCounterStatistics(hcounter: isize, dwformat: PDH_FMT, dwfirstentry: u32, dwnumentries: u32, lprawvaluearray: *const PDH_RAW_COUNTER, data: *mut PDH_STATISTICS) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhComputeCounterStatistics ( hcounter : isize , dwformat : PDH_FMT , dwfirstentry : u32 , dwnumentries : u32 , lprawvaluearray : *const PDH_RAW_COUNTER , data : *mut PDH_STATISTICS ) -> u32 ); |
| PdhComputeCounterStatistics(hcounter, dwformat, dwfirstentry, dwnumentries, lprawvaluearray, data) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhConnectMachineA<P0>(szmachinename: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhConnectMachineA ( szmachinename : ::windows::core::PCSTR ) -> u32 ); |
| PdhConnectMachineA(szmachinename.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhConnectMachineW<P0>(szmachinename: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhConnectMachineW ( szmachinename : ::windows::core::PCWSTR ) -> u32 ); |
| PdhConnectMachineW(szmachinename.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhCreateSQLTablesA<P0>(szdatasource: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhCreateSQLTablesA ( szdatasource : ::windows::core::PCSTR ) -> u32 ); |
| PdhCreateSQLTablesA(szdatasource.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhCreateSQLTablesW<P0>(szdatasource: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhCreateSQLTablesW ( szdatasource : ::windows::core::PCWSTR ) -> u32 ); |
| PdhCreateSQLTablesW(szdatasource.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumLogSetNamesA<P0>(szdatasource: P0, mszdatasetnamelist: ::windows::core::PSTR, pcchbufferlength: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumLogSetNamesA ( szdatasource : ::windows::core::PCSTR , mszdatasetnamelist : ::windows::core::PSTR , pcchbufferlength : *mut u32 ) -> u32 ); |
| PdhEnumLogSetNamesA(szdatasource.into_param().abi(), ::core::mem::transmute(mszdatasetnamelist), pcchbufferlength) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumLogSetNamesW<P0>(szdatasource: P0, mszdatasetnamelist: ::windows::core::PWSTR, pcchbufferlength: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumLogSetNamesW ( szdatasource : ::windows::core::PCWSTR , mszdatasetnamelist : ::windows::core::PWSTR , pcchbufferlength : *mut u32 ) -> u32 ); |
| PdhEnumLogSetNamesW(szdatasource.into_param().abi(), ::core::mem::transmute(mszdatasetnamelist), pcchbufferlength) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumMachinesA<P0>(szdatasource: P0, mszmachinelist: ::windows::core::PSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumMachinesA ( szdatasource : ::windows::core::PCSTR , mszmachinelist : ::windows::core::PSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhEnumMachinesA(szdatasource.into_param().abi(), ::core::mem::transmute(mszmachinelist), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumMachinesHA(hdatasource: isize, mszmachinelist: ::windows::core::PSTR, pcchbuffersize: *mut u32) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumMachinesHA ( hdatasource : isize , mszmachinelist : ::windows::core::PSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhEnumMachinesHA(hdatasource, ::core::mem::transmute(mszmachinelist), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumMachinesHW(hdatasource: isize, mszmachinelist: ::windows::core::PWSTR, pcchbuffersize: *mut u32) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumMachinesHW ( hdatasource : isize , mszmachinelist : ::windows::core::PWSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhEnumMachinesHW(hdatasource, ::core::mem::transmute(mszmachinelist), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumMachinesW<P0>(szdatasource: P0, mszmachinelist: ::windows::core::PWSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumMachinesW ( szdatasource : ::windows::core::PCWSTR , mszmachinelist : ::windows::core::PWSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhEnumMachinesW(szdatasource.into_param().abi(), ::core::mem::transmute(mszmachinelist), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumObjectItemsA<P0, P1, P2>(szdatasource: P0, szmachinename: P1, szobjectname: P2, mszcounterlist: ::windows::core::PSTR, pcchcounterlistlength: *mut u32, mszinstancelist: ::windows::core::PSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P2: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumObjectItemsA ( szdatasource : ::windows::core::PCSTR , szmachinename : ::windows::core::PCSTR , szobjectname : ::windows::core::PCSTR , mszcounterlist : ::windows::core::PSTR , pcchcounterlistlength : *mut u32 , mszinstancelist : ::windows::core::PSTR , pcchinstancelistlength : *mut u32 , dwdetaillevel : PERF_DETAIL , dwflags : u32 ) -> u32 ); |
| PdhEnumObjectItemsA(szdatasource.into_param().abi(), szmachinename.into_param().abi(), szobjectname.into_param().abi(), ::core::mem::transmute(mszcounterlist), pcchcounterlistlength, ::core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumObjectItemsHA<P0, P1>(hdatasource: isize, szmachinename: P0, szobjectname: P1, mszcounterlist: ::windows::core::PSTR, pcchcounterlistlength: *mut u32, mszinstancelist: ::windows::core::PSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumObjectItemsHA ( hdatasource : isize , szmachinename : ::windows::core::PCSTR , szobjectname : ::windows::core::PCSTR , mszcounterlist : ::windows::core::PSTR , pcchcounterlistlength : *mut u32 , mszinstancelist : ::windows::core::PSTR , pcchinstancelistlength : *mut u32 , dwdetaillevel : PERF_DETAIL , dwflags : u32 ) -> u32 ); |
| PdhEnumObjectItemsHA(hdatasource, szmachinename.into_param().abi(), szobjectname.into_param().abi(), ::core::mem::transmute(mszcounterlist), pcchcounterlistlength, ::core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumObjectItemsHW<P0, P1>(hdatasource: isize, szmachinename: P0, szobjectname: P1, mszcounterlist: ::windows::core::PWSTR, pcchcounterlistlength: *mut u32, mszinstancelist: ::windows::core::PWSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumObjectItemsHW ( hdatasource : isize , szmachinename : ::windows::core::PCWSTR , szobjectname : ::windows::core::PCWSTR , mszcounterlist : ::windows::core::PWSTR , pcchcounterlistlength : *mut u32 , mszinstancelist : ::windows::core::PWSTR , pcchinstancelistlength : *mut u32 , dwdetaillevel : PERF_DETAIL , dwflags : u32 ) -> u32 ); |
| PdhEnumObjectItemsHW(hdatasource, szmachinename.into_param().abi(), szobjectname.into_param().abi(), ::core::mem::transmute(mszcounterlist), pcchcounterlistlength, ::core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhEnumObjectItemsW<P0, P1, P2>(szdatasource: P0, szmachinename: P1, szobjectname: P2, mszcounterlist: ::windows::core::PWSTR, pcchcounterlistlength: *mut u32, mszinstancelist: ::windows::core::PWSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P2: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumObjectItemsW ( szdatasource : ::windows::core::PCWSTR , szmachinename : ::windows::core::PCWSTR , szobjectname : ::windows::core::PCWSTR , mszcounterlist : ::windows::core::PWSTR , pcchcounterlistlength : *mut u32 , mszinstancelist : ::windows::core::PWSTR , pcchinstancelistlength : *mut u32 , dwdetaillevel : PERF_DETAIL , dwflags : u32 ) -> u32 ); |
| PdhEnumObjectItemsW(szdatasource.into_param().abi(), szmachinename.into_param().abi(), szobjectname.into_param().abi(), ::core::mem::transmute(mszcounterlist), pcchcounterlistlength, ::core::mem::transmute(mszinstancelist), pcchinstancelistlength, dwdetaillevel, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhEnumObjectsA<P0, P1, P2>(szdatasource: P0, szmachinename: P1, mszobjectlist: ::windows::core::PSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: P2) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P2: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumObjectsA ( szdatasource : ::windows::core::PCSTR , szmachinename : ::windows::core::PCSTR , mszobjectlist : ::windows::core::PSTR , pcchbuffersize : *mut u32 , dwdetaillevel : PERF_DETAIL , brefresh : super::super::Foundation:: BOOL ) -> u32 ); |
| PdhEnumObjectsA(szdatasource.into_param().abi(), szmachinename.into_param().abi(), ::core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhEnumObjectsHA<P0, P1>(hdatasource: isize, szmachinename: P0, mszobjectlist: ::windows::core::PSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumObjectsHA ( hdatasource : isize , szmachinename : ::windows::core::PCSTR , mszobjectlist : ::windows::core::PSTR , pcchbuffersize : *mut u32 , dwdetaillevel : PERF_DETAIL , brefresh : super::super::Foundation:: BOOL ) -> u32 ); |
| PdhEnumObjectsHA(hdatasource, szmachinename.into_param().abi(), ::core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhEnumObjectsHW<P0, P1>(hdatasource: isize, szmachinename: P0, mszobjectlist: ::windows::core::PWSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumObjectsHW ( hdatasource : isize , szmachinename : ::windows::core::PCWSTR , mszobjectlist : ::windows::core::PWSTR , pcchbuffersize : *mut u32 , dwdetaillevel : PERF_DETAIL , brefresh : super::super::Foundation:: BOOL ) -> u32 ); |
| PdhEnumObjectsHW(hdatasource, szmachinename.into_param().abi(), ::core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhEnumObjectsW<P0, P1, P2>(szdatasource: P0, szmachinename: P1, mszobjectlist: ::windows::core::PWSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: P2) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P2: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhEnumObjectsW ( szdatasource : ::windows::core::PCWSTR , szmachinename : ::windows::core::PCWSTR , mszobjectlist : ::windows::core::PWSTR , pcchbuffersize : *mut u32 , dwdetaillevel : PERF_DETAIL , brefresh : super::super::Foundation:: BOOL ) -> u32 ); |
| PdhEnumObjectsW(szdatasource.into_param().abi(), szmachinename.into_param().abi(), ::core::mem::transmute(mszobjectlist), pcchbuffersize, dwdetaillevel, brefresh.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhExpandCounterPathA<P0>(szwildcardpath: P0, mszexpandedpathlist: ::windows::core::PSTR, pcchpathlistlength: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhExpandCounterPathA ( szwildcardpath : ::windows::core::PCSTR , mszexpandedpathlist : ::windows::core::PSTR , pcchpathlistlength : *mut u32 ) -> u32 ); |
| PdhExpandCounterPathA(szwildcardpath.into_param().abi(), ::core::mem::transmute(mszexpandedpathlist), pcchpathlistlength) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhExpandCounterPathW<P0>(szwildcardpath: P0, mszexpandedpathlist: ::windows::core::PWSTR, pcchpathlistlength: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhExpandCounterPathW ( szwildcardpath : ::windows::core::PCWSTR , mszexpandedpathlist : ::windows::core::PWSTR , pcchpathlistlength : *mut u32 ) -> u32 ); |
| PdhExpandCounterPathW(szwildcardpath.into_param().abi(), ::core::mem::transmute(mszexpandedpathlist), pcchpathlistlength) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhExpandWildCardPathA<P0, P1>(szdatasource: P0, szwildcardpath: P1, mszexpandedpathlist: ::windows::core::PSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhExpandWildCardPathA ( szdatasource : ::windows::core::PCSTR , szwildcardpath : ::windows::core::PCSTR , mszexpandedpathlist : ::windows::core::PSTR , pcchpathlistlength : *mut u32 , dwflags : u32 ) -> u32 ); |
| PdhExpandWildCardPathA(szdatasource.into_param().abi(), szwildcardpath.into_param().abi(), ::core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhExpandWildCardPathHA<P0>(hdatasource: isize, szwildcardpath: P0, mszexpandedpathlist: ::windows::core::PSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhExpandWildCardPathHA ( hdatasource : isize , szwildcardpath : ::windows::core::PCSTR , mszexpandedpathlist : ::windows::core::PSTR , pcchpathlistlength : *mut u32 , dwflags : u32 ) -> u32 ); |
| PdhExpandWildCardPathHA(hdatasource, szwildcardpath.into_param().abi(), ::core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhExpandWildCardPathHW<P0>(hdatasource: isize, szwildcardpath: P0, mszexpandedpathlist: ::windows::core::PWSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhExpandWildCardPathHW ( hdatasource : isize , szwildcardpath : ::windows::core::PCWSTR , mszexpandedpathlist : ::windows::core::PWSTR , pcchpathlistlength : *mut u32 , dwflags : u32 ) -> u32 ); |
| PdhExpandWildCardPathHW(hdatasource, szwildcardpath.into_param().abi(), ::core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhExpandWildCardPathW<P0, P1>(szdatasource: P0, szwildcardpath: P1, mszexpandedpathlist: ::windows::core::PWSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhExpandWildCardPathW ( szdatasource : ::windows::core::PCWSTR , szwildcardpath : ::windows::core::PCWSTR , mszexpandedpathlist : ::windows::core::PWSTR , pcchpathlistlength : *mut u32 , dwflags : u32 ) -> u32 ); |
| PdhExpandWildCardPathW(szdatasource.into_param().abi(), szwildcardpath.into_param().abi(), ::core::mem::transmute(mszexpandedpathlist), pcchpathlistlength, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhFormatFromRawValue(dwcountertype: u32, dwformat: PDH_FMT, ptimebase: ::core::option::Option<*const i64>, prawvalue1: *const PDH_RAW_COUNTER, prawvalue2: *const PDH_RAW_COUNTER, pfmtvalue: *mut PDH_FMT_COUNTERVALUE) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhFormatFromRawValue ( dwcountertype : u32 , dwformat : PDH_FMT , ptimebase : *const i64 , prawvalue1 : *const PDH_RAW_COUNTER , prawvalue2 : *const PDH_RAW_COUNTER , pfmtvalue : *mut PDH_FMT_COUNTERVALUE ) -> u32 ); |
| PdhFormatFromRawValue(dwcountertype, dwformat, ::core::mem::transmute(ptimebase.unwrap_or(::std::ptr::null())), prawvalue1, prawvalue2, pfmtvalue) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhGetCounterInfoA<P0>(hcounter: isize, bretrieveexplaintext: P0, pdwbuffersize: *mut u32, lpbuffer: ::core::option::Option<*mut PDH_COUNTER_INFO_A>) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::BOOLEAN>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetCounterInfoA ( hcounter : isize , bretrieveexplaintext : super::super::Foundation:: BOOLEAN , pdwbuffersize : *mut u32 , lpbuffer : *mut PDH_COUNTER_INFO_A ) -> u32 ); |
| PdhGetCounterInfoA(hcounter, bretrieveexplaintext.into_param().abi(), pdwbuffersize, ::core::mem::transmute(lpbuffer.unwrap_or(::std::ptr::null_mut()))) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhGetCounterInfoW<P0>(hcounter: isize, bretrieveexplaintext: P0, pdwbuffersize: *mut u32, lpbuffer: ::core::option::Option<*mut PDH_COUNTER_INFO_W>) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::BOOLEAN>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetCounterInfoW ( hcounter : isize , bretrieveexplaintext : super::super::Foundation:: BOOLEAN , pdwbuffersize : *mut u32 , lpbuffer : *mut PDH_COUNTER_INFO_W ) -> u32 ); |
| PdhGetCounterInfoW(hcounter, bretrieveexplaintext.into_param().abi(), pdwbuffersize, ::core::mem::transmute(lpbuffer.unwrap_or(::std::ptr::null_mut()))) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetCounterTimeBase(hcounter: isize, ptimebase: *mut i64) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetCounterTimeBase ( hcounter : isize , ptimebase : *mut i64 ) -> u32 ); |
| PdhGetCounterTimeBase(hcounter, ptimebase) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDataSourceTimeRangeA<P0>(szdatasource: P0, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDataSourceTimeRangeA ( szdatasource : ::windows::core::PCSTR , pdwnumentries : *mut u32 , pinfo : *mut PDH_TIME_INFO , pdwbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDataSourceTimeRangeA(szdatasource.into_param().abi(), pdwnumentries, pinfo, pdwbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDataSourceTimeRangeH(hdatasource: isize, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDataSourceTimeRangeH ( hdatasource : isize , pdwnumentries : *mut u32 , pinfo : *mut PDH_TIME_INFO , pdwbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDataSourceTimeRangeH(hdatasource, pdwnumentries, pinfo, pdwbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDataSourceTimeRangeW<P0>(szdatasource: P0, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDataSourceTimeRangeW ( szdatasource : ::windows::core::PCWSTR , pdwnumentries : *mut u32 , pinfo : *mut PDH_TIME_INFO , pdwbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDataSourceTimeRangeW(szdatasource.into_param().abi(), pdwnumentries, pinfo, pdwbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDefaultPerfCounterA<P0, P1, P2>(szdatasource: P0, szmachinename: P1, szobjectname: P2, szdefaultcountername: ::windows::core::PSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P2: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDefaultPerfCounterA ( szdatasource : ::windows::core::PCSTR , szmachinename : ::windows::core::PCSTR , szobjectname : ::windows::core::PCSTR , szdefaultcountername : ::windows::core::PSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDefaultPerfCounterA(szdatasource.into_param().abi(), szmachinename.into_param().abi(), szobjectname.into_param().abi(), ::core::mem::transmute(szdefaultcountername), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDefaultPerfCounterHA<P0, P1>(hdatasource: isize, szmachinename: P0, szobjectname: P1, szdefaultcountername: ::windows::core::PSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDefaultPerfCounterHA ( hdatasource : isize , szmachinename : ::windows::core::PCSTR , szobjectname : ::windows::core::PCSTR , szdefaultcountername : ::windows::core::PSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDefaultPerfCounterHA(hdatasource, szmachinename.into_param().abi(), szobjectname.into_param().abi(), ::core::mem::transmute(szdefaultcountername), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDefaultPerfCounterHW<P0, P1>(hdatasource: isize, szmachinename: P0, szobjectname: P1, szdefaultcountername: ::windows::core::PWSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDefaultPerfCounterHW ( hdatasource : isize , szmachinename : ::windows::core::PCWSTR , szobjectname : ::windows::core::PCWSTR , szdefaultcountername : ::windows::core::PWSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDefaultPerfCounterHW(hdatasource, szmachinename.into_param().abi(), szobjectname.into_param().abi(), ::core::mem::transmute(szdefaultcountername), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDefaultPerfCounterW<P0, P1, P2>(szdatasource: P0, szmachinename: P1, szobjectname: P2, szdefaultcountername: ::windows::core::PWSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P2: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDefaultPerfCounterW ( szdatasource : ::windows::core::PCWSTR , szmachinename : ::windows::core::PCWSTR , szobjectname : ::windows::core::PCWSTR , szdefaultcountername : ::windows::core::PWSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDefaultPerfCounterW(szdatasource.into_param().abi(), szmachinename.into_param().abi(), szobjectname.into_param().abi(), ::core::mem::transmute(szdefaultcountername), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDefaultPerfObjectA<P0, P1>(szdatasource: P0, szmachinename: P1, szdefaultobjectname: ::windows::core::PSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDefaultPerfObjectA ( szdatasource : ::windows::core::PCSTR , szmachinename : ::windows::core::PCSTR , szdefaultobjectname : ::windows::core::PSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDefaultPerfObjectA(szdatasource.into_param().abi(), szmachinename.into_param().abi(), ::core::mem::transmute(szdefaultobjectname), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDefaultPerfObjectHA<P0>(hdatasource: isize, szmachinename: P0, szdefaultobjectname: ::windows::core::PSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDefaultPerfObjectHA ( hdatasource : isize , szmachinename : ::windows::core::PCSTR , szdefaultobjectname : ::windows::core::PSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDefaultPerfObjectHA(hdatasource, szmachinename.into_param().abi(), ::core::mem::transmute(szdefaultobjectname), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDefaultPerfObjectHW<P0>(hdatasource: isize, szmachinename: P0, szdefaultobjectname: ::windows::core::PWSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDefaultPerfObjectHW ( hdatasource : isize , szmachinename : ::windows::core::PCWSTR , szdefaultobjectname : ::windows::core::PWSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDefaultPerfObjectHW(hdatasource, szmachinename.into_param().abi(), ::core::mem::transmute(szdefaultobjectname), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDefaultPerfObjectW<P0, P1>(szdatasource: P0, szmachinename: P1, szdefaultobjectname: ::windows::core::PWSTR, pcchbuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDefaultPerfObjectW ( szdatasource : ::windows::core::PCWSTR , szmachinename : ::windows::core::PCWSTR , szdefaultobjectname : ::windows::core::PWSTR , pcchbuffersize : *mut u32 ) -> u32 ); |
| PdhGetDefaultPerfObjectW(szdatasource.into_param().abi(), szmachinename.into_param().abi(), ::core::mem::transmute(szdefaultobjectname), pcchbuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetDllVersion(lpdwversion: ::core::option::Option<*mut PDH_DLL_VERSION>) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetDllVersion ( lpdwversion : *mut PDH_DLL_VERSION ) -> u32 ); |
| PdhGetDllVersion(::core::mem::transmute(lpdwversion.unwrap_or(::std::ptr::null_mut()))) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetFormattedCounterArrayA(hcounter: isize, dwformat: PDH_FMT, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: ::core::option::Option<*mut PDH_FMT_COUNTERVALUE_ITEM_A>) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetFormattedCounterArrayA ( hcounter : isize , dwformat : PDH_FMT , lpdwbuffersize : *mut u32 , lpdwitemcount : *mut u32 , itembuffer : *mut PDH_FMT_COUNTERVALUE_ITEM_A ) -> u32 ); |
| PdhGetFormattedCounterArrayA(hcounter, dwformat, lpdwbuffersize, lpdwitemcount, ::core::mem::transmute(itembuffer.unwrap_or(::std::ptr::null_mut()))) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetFormattedCounterArrayW(hcounter: isize, dwformat: PDH_FMT, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: ::core::option::Option<*mut PDH_FMT_COUNTERVALUE_ITEM_W>) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetFormattedCounterArrayW ( hcounter : isize , dwformat : PDH_FMT , lpdwbuffersize : *mut u32 , lpdwitemcount : *mut u32 , itembuffer : *mut PDH_FMT_COUNTERVALUE_ITEM_W ) -> u32 ); |
| PdhGetFormattedCounterArrayW(hcounter, dwformat, lpdwbuffersize, lpdwitemcount, ::core::mem::transmute(itembuffer.unwrap_or(::std::ptr::null_mut()))) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetFormattedCounterValue(hcounter: isize, dwformat: PDH_FMT, lpdwtype: ::core::option::Option<*mut u32>, pvalue: *mut PDH_FMT_COUNTERVALUE) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetFormattedCounterValue ( hcounter : isize , dwformat : PDH_FMT , lpdwtype : *mut u32 , pvalue : *mut PDH_FMT_COUNTERVALUE ) -> u32 ); |
| PdhGetFormattedCounterValue(hcounter, dwformat, ::core::mem::transmute(lpdwtype.unwrap_or(::std::ptr::null_mut())), pvalue) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetLogFileSize(hlog: isize, llsize: *mut i64) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetLogFileSize ( hlog : isize , llsize : *mut i64 ) -> u32 ); |
| PdhGetLogFileSize(hlog, llsize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhGetLogSetGUID(hlog: isize, pguid: ::core::option::Option<*mut ::windows::core::GUID>, prunid: ::core::option::Option<*mut i32>) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetLogSetGUID ( hlog : isize , pguid : *mut ::windows::core::GUID , prunid : *mut i32 ) -> u32 ); |
| PdhGetLogSetGUID(hlog, ::core::mem::transmute(pguid.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(prunid.unwrap_or(::std::ptr::null_mut()))) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhGetRawCounterArrayA(hcounter: isize, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: ::core::option::Option<*mut PDH_RAW_COUNTER_ITEM_A>) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetRawCounterArrayA ( hcounter : isize , lpdwbuffersize : *mut u32 , lpdwitemcount : *mut u32 , itembuffer : *mut PDH_RAW_COUNTER_ITEM_A ) -> u32 ); |
| PdhGetRawCounterArrayA(hcounter, lpdwbuffersize, lpdwitemcount, ::core::mem::transmute(itembuffer.unwrap_or(::std::ptr::null_mut()))) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhGetRawCounterArrayW(hcounter: isize, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: ::core::option::Option<*mut PDH_RAW_COUNTER_ITEM_W>) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetRawCounterArrayW ( hcounter : isize , lpdwbuffersize : *mut u32 , lpdwitemcount : *mut u32 , itembuffer : *mut PDH_RAW_COUNTER_ITEM_W ) -> u32 ); |
| PdhGetRawCounterArrayW(hcounter, lpdwbuffersize, lpdwitemcount, ::core::mem::transmute(itembuffer.unwrap_or(::std::ptr::null_mut()))) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhGetRawCounterValue(hcounter: isize, lpdwtype: ::core::option::Option<*mut u32>, pvalue: *mut PDH_RAW_COUNTER) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhGetRawCounterValue ( hcounter : isize , lpdwtype : *mut u32 , pvalue : *mut PDH_RAW_COUNTER ) -> u32 ); |
| PdhGetRawCounterValue(hcounter, ::core::mem::transmute(lpdwtype.unwrap_or(::std::ptr::null_mut())), pvalue) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhIsRealTimeQuery(hquery: isize) -> super::super::Foundation::BOOL { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhIsRealTimeQuery ( hquery : isize ) -> super::super::Foundation:: BOOL ); |
| PdhIsRealTimeQuery(hquery) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhLookupPerfIndexByNameA<P0, P1>(szmachinename: P0, sznamebuffer: P1, pdwindex: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhLookupPerfIndexByNameA ( szmachinename : ::windows::core::PCSTR , sznamebuffer : ::windows::core::PCSTR , pdwindex : *mut u32 ) -> u32 ); |
| PdhLookupPerfIndexByNameA(szmachinename.into_param().abi(), sznamebuffer.into_param().abi(), pdwindex) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhLookupPerfIndexByNameW<P0, P1>(szmachinename: P0, sznamebuffer: P1, pdwindex: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhLookupPerfIndexByNameW ( szmachinename : ::windows::core::PCWSTR , sznamebuffer : ::windows::core::PCWSTR , pdwindex : *mut u32 ) -> u32 ); |
| PdhLookupPerfIndexByNameW(szmachinename.into_param().abi(), sznamebuffer.into_param().abi(), pdwindex) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhLookupPerfNameByIndexA<P0>(szmachinename: P0, dwnameindex: u32, sznamebuffer: ::windows::core::PSTR, pcchnamebuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhLookupPerfNameByIndexA ( szmachinename : ::windows::core::PCSTR , dwnameindex : u32 , sznamebuffer : ::windows::core::PSTR , pcchnamebuffersize : *mut u32 ) -> u32 ); |
| PdhLookupPerfNameByIndexA(szmachinename.into_param().abi(), dwnameindex, ::core::mem::transmute(sznamebuffer), pcchnamebuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhLookupPerfNameByIndexW<P0>(szmachinename: P0, dwnameindex: u32, sznamebuffer: ::windows::core::PWSTR, pcchnamebuffersize: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhLookupPerfNameByIndexW ( szmachinename : ::windows::core::PCWSTR , dwnameindex : u32 , sznamebuffer : ::windows::core::PWSTR , pcchnamebuffersize : *mut u32 ) -> u32 ); |
| PdhLookupPerfNameByIndexW(szmachinename.into_param().abi(), dwnameindex, ::core::mem::transmute(sznamebuffer), pcchnamebuffersize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhMakeCounterPathA(pcounterpathelements: *const PDH_COUNTER_PATH_ELEMENTS_A, szfullpathbuffer: ::windows::core::PSTR, pcchbuffersize: *mut u32, dwflags: PDH_PATH_FLAGS) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhMakeCounterPathA ( pcounterpathelements : *const PDH_COUNTER_PATH_ELEMENTS_A , szfullpathbuffer : ::windows::core::PSTR , pcchbuffersize : *mut u32 , dwflags : PDH_PATH_FLAGS ) -> u32 ); |
| PdhMakeCounterPathA(pcounterpathelements, ::core::mem::transmute(szfullpathbuffer), pcchbuffersize, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhMakeCounterPathW(pcounterpathelements: *const PDH_COUNTER_PATH_ELEMENTS_W, szfullpathbuffer: ::windows::core::PWSTR, pcchbuffersize: *mut u32, dwflags: PDH_PATH_FLAGS) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhMakeCounterPathW ( pcounterpathelements : *const PDH_COUNTER_PATH_ELEMENTS_W , szfullpathbuffer : ::windows::core::PWSTR , pcchbuffersize : *mut u32 , dwflags : PDH_PATH_FLAGS ) -> u32 ); |
| PdhMakeCounterPathW(pcounterpathelements, ::core::mem::transmute(szfullpathbuffer), pcchbuffersize, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhOpenLogA<P0, P1>(szlogfilename: P0, dwaccessflags: PDH_LOG, lpdwlogtype: *mut PDH_LOG_TYPE, hquery: isize, dwmaxsize: u32, szusercaption: P1, phlog: *mut isize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhOpenLogA ( szlogfilename : ::windows::core::PCSTR , dwaccessflags : PDH_LOG , lpdwlogtype : *mut PDH_LOG_TYPE , hquery : isize , dwmaxsize : u32 , szusercaption : ::windows::core::PCSTR , phlog : *mut isize ) -> u32 ); |
| PdhOpenLogA(szlogfilename.into_param().abi(), dwaccessflags, lpdwlogtype, hquery, dwmaxsize, szusercaption.into_param().abi(), phlog) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhOpenLogW<P0, P1>(szlogfilename: P0, dwaccessflags: PDH_LOG, lpdwlogtype: *mut PDH_LOG_TYPE, hquery: isize, dwmaxsize: u32, szusercaption: P1, phlog: *mut isize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhOpenLogW ( szlogfilename : ::windows::core::PCWSTR , dwaccessflags : PDH_LOG , lpdwlogtype : *mut PDH_LOG_TYPE , hquery : isize , dwmaxsize : u32 , szusercaption : ::windows::core::PCWSTR , phlog : *mut isize ) -> u32 ); |
| PdhOpenLogW(szlogfilename.into_param().abi(), dwaccessflags, lpdwlogtype, hquery, dwmaxsize, szusercaption.into_param().abi(), phlog) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhOpenQueryA<P0>(szdatasource: P0, dwuserdata: usize, phquery: *mut isize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhOpenQueryA ( szdatasource : ::windows::core::PCSTR , dwuserdata : usize , phquery : *mut isize ) -> u32 ); |
| PdhOpenQueryA(szdatasource.into_param().abi(), dwuserdata, phquery) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhOpenQueryH(hdatasource: isize, dwuserdata: usize, phquery: *mut isize) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhOpenQueryH ( hdatasource : isize , dwuserdata : usize , phquery : *mut isize ) -> u32 ); |
| PdhOpenQueryH(hdatasource, dwuserdata, phquery) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhOpenQueryW<P0>(szdatasource: P0, dwuserdata: usize, phquery: *mut isize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhOpenQueryW ( szdatasource : ::windows::core::PCWSTR , dwuserdata : usize , phquery : *mut isize ) -> u32 ); |
| PdhOpenQueryW(szdatasource.into_param().abi(), dwuserdata, phquery) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhParseCounterPathA<P0>(szfullpathbuffer: P0, pcounterpathelements: ::core::option::Option<*mut PDH_COUNTER_PATH_ELEMENTS_A>, pdwbuffersize: *mut u32, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhParseCounterPathA ( szfullpathbuffer : ::windows::core::PCSTR , pcounterpathelements : *mut PDH_COUNTER_PATH_ELEMENTS_A , pdwbuffersize : *mut u32 , dwflags : u32 ) -> u32 ); |
| PdhParseCounterPathA(szfullpathbuffer.into_param().abi(), ::core::mem::transmute(pcounterpathelements.unwrap_or(::std::ptr::null_mut())), pdwbuffersize, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhParseCounterPathW<P0>(szfullpathbuffer: P0, pcounterpathelements: ::core::option::Option<*mut PDH_COUNTER_PATH_ELEMENTS_W>, pdwbuffersize: *mut u32, dwflags: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhParseCounterPathW ( szfullpathbuffer : ::windows::core::PCWSTR , pcounterpathelements : *mut PDH_COUNTER_PATH_ELEMENTS_W , pdwbuffersize : *mut u32 , dwflags : u32 ) -> u32 ); |
| PdhParseCounterPathW(szfullpathbuffer.into_param().abi(), ::core::mem::transmute(pcounterpathelements.unwrap_or(::std::ptr::null_mut())), pdwbuffersize, dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhParseInstanceNameA<P0>(szinstancestring: P0, szinstancename: ::windows::core::PSTR, pcchinstancenamelength: *mut u32, szparentname: ::windows::core::PSTR, pcchparentnamelength: *mut u32, lpindex: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhParseInstanceNameA ( szinstancestring : ::windows::core::PCSTR , szinstancename : ::windows::core::PSTR , pcchinstancenamelength : *mut u32 , szparentname : ::windows::core::PSTR , pcchparentnamelength : *mut u32 , lpindex : *mut u32 ) -> u32 ); |
| PdhParseInstanceNameA(szinstancestring.into_param().abi(), ::core::mem::transmute(szinstancename), pcchinstancenamelength, ::core::mem::transmute(szparentname), pcchparentnamelength, lpindex) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhParseInstanceNameW<P0>(szinstancestring: P0, szinstancename: ::windows::core::PWSTR, pcchinstancenamelength: *mut u32, szparentname: ::windows::core::PWSTR, pcchparentnamelength: *mut u32, lpindex: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhParseInstanceNameW ( szinstancestring : ::windows::core::PCWSTR , szinstancename : ::windows::core::PWSTR , pcchinstancenamelength : *mut u32 , szparentname : ::windows::core::PWSTR , pcchparentnamelength : *mut u32 , lpindex : *mut u32 ) -> u32 ); |
| PdhParseInstanceNameW(szinstancestring.into_param().abi(), ::core::mem::transmute(szinstancename), pcchinstancenamelength, ::core::mem::transmute(szparentname), pcchparentnamelength, lpindex) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhReadRawLogRecord(hlog: isize, ftrecord: super::super::Foundation::FILETIME, prawlogrecord: ::core::option::Option<*mut PDH_RAW_LOG_RECORD>, pdwbufferlength: *mut u32) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhReadRawLogRecord ( hlog : isize , ftrecord : super::super::Foundation:: FILETIME , prawlogrecord : *mut PDH_RAW_LOG_RECORD , pdwbufferlength : *mut u32 ) -> u32 ); |
| PdhReadRawLogRecord(hlog, ::core::mem::transmute(ftrecord), ::core::mem::transmute(prawlogrecord.unwrap_or(::std::ptr::null_mut())), pdwbufferlength) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhRemoveCounter(hcounter: isize) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhRemoveCounter ( hcounter : isize ) -> u32 ); |
| PdhRemoveCounter(hcounter) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhSelectDataSourceA<P0>(hwndowner: P0, dwflags: PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource: ::windows::core::PSTR, pcchbufferlength: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HWND>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhSelectDataSourceA ( hwndowner : super::super::Foundation:: HWND , dwflags : PDH_SELECT_DATA_SOURCE_FLAGS , szdatasource : ::windows::core::PSTR , pcchbufferlength : *mut u32 ) -> u32 ); |
| PdhSelectDataSourceA(hwndowner.into_param().abi(), dwflags, ::core::mem::transmute(szdatasource), pcchbufferlength) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PdhSelectDataSourceW<P0>(hwndowner: P0, dwflags: PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource: ::windows::core::PWSTR, pcchbufferlength: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HWND>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhSelectDataSourceW ( hwndowner : super::super::Foundation:: HWND , dwflags : PDH_SELECT_DATA_SOURCE_FLAGS , szdatasource : ::windows::core::PWSTR , pcchbufferlength : *mut u32 ) -> u32 ); |
| PdhSelectDataSourceW(hwndowner.into_param().abi(), dwflags, ::core::mem::transmute(szdatasource), pcchbufferlength) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhSetCounterScaleFactor(hcounter: isize, lfactor: i32) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhSetCounterScaleFactor ( hcounter : isize , lfactor : i32 ) -> u32 ); |
| PdhSetCounterScaleFactor(hcounter, lfactor) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhSetDefaultRealTimeDataSource(dwdatasourceid: REAL_TIME_DATA_SOURCE_ID_FLAGS) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhSetDefaultRealTimeDataSource ( dwdatasourceid : REAL_TIME_DATA_SOURCE_ID_FLAGS ) -> u32 ); |
| PdhSetDefaultRealTimeDataSource(dwdatasourceid) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhSetLogSetRunID(hlog: isize, runid: i32) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhSetLogSetRunID ( hlog : isize , runid : i32 ) -> u32 ); |
| PdhSetLogSetRunID(hlog, runid) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhSetQueryTimeRange(hquery: isize, pinfo: *const PDH_TIME_INFO) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhSetQueryTimeRange ( hquery : isize , pinfo : *const PDH_TIME_INFO ) -> u32 ); |
| PdhSetQueryTimeRange(hquery, pinfo) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhUpdateLogA<P0>(hlog: isize, szuserstring: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhUpdateLogA ( hlog : isize , szuserstring : ::windows::core::PCSTR ) -> u32 ); |
| PdhUpdateLogA(hlog, szuserstring.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhUpdateLogFileCatalog(hlog: isize) -> u32 { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhUpdateLogFileCatalog ( hlog : isize ) -> u32 ); |
| PdhUpdateLogFileCatalog(hlog) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhUpdateLogW<P0>(hlog: isize, szuserstring: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhUpdateLogW ( hlog : isize , szuserstring : ::windows::core::PCWSTR ) -> u32 ); |
| PdhUpdateLogW(hlog, szuserstring.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhValidatePathA<P0>(szfullpathbuffer: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhValidatePathA ( szfullpathbuffer : ::windows::core::PCSTR ) -> u32 ); |
| PdhValidatePathA(szfullpathbuffer.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhValidatePathExA<P0>(hdatasource: isize, szfullpathbuffer: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhValidatePathExA ( hdatasource : isize , szfullpathbuffer : ::windows::core::PCSTR ) -> u32 ); |
| PdhValidatePathExA(hdatasource, szfullpathbuffer.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhValidatePathExW<P0>(hdatasource: isize, szfullpathbuffer: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhValidatePathExW ( hdatasource : isize , szfullpathbuffer : ::windows::core::PCWSTR ) -> u32 ); |
| PdhValidatePathExW(hdatasource, szfullpathbuffer.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhValidatePathW<P0>(szfullpathbuffer: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhValidatePathW ( szfullpathbuffer : ::windows::core::PCWSTR ) -> u32 ); |
| PdhValidatePathW(szfullpathbuffer.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhVerifySQLDBA<P0>(szdatasource: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhVerifySQLDBA ( szdatasource : ::windows::core::PCSTR ) -> u32 ); |
| PdhVerifySQLDBA(szdatasource.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PdhVerifySQLDBW<P0>(szdatasource: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "pdh.dll""system" fn PdhVerifySQLDBW ( szdatasource : ::windows::core::PCWSTR ) -> u32 ); |
| PdhVerifySQLDBW(szdatasource.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfAddCounters<P0>(hquery: P0, pcounters: *mut PERF_COUNTER_IDENTIFIER, cbcounters: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<PerfQueryHandle>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfAddCounters ( hquery : PerfQueryHandle , pcounters : *mut PERF_COUNTER_IDENTIFIER , cbcounters : u32 ) -> u32 ); |
| PerfAddCounters(hquery.into_param().abi(), pcounters, cbcounters) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfCloseQueryHandle<P0>(hquery: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfCloseQueryHandle ( hquery : super::super::Foundation:: HANDLE ) -> u32 ); |
| PerfCloseQueryHandle(hquery.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfCreateInstance<P0, P1>(providerhandle: P0, countersetguid: *const ::windows::core::GUID, name: P1, id: u32) -> *mut PERF_COUNTERSET_INSTANCE |
| where |
| P0: ::windows::core::IntoParam<PerfProviderHandle>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfCreateInstance ( providerhandle : PerfProviderHandle , countersetguid : *const ::windows::core::GUID , name : ::windows::core::PCWSTR , id : u32 ) -> *mut PERF_COUNTERSET_INSTANCE ); |
| PerfCreateInstance(providerhandle.into_param().abi(), countersetguid, name.into_param().abi(), id) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfDecrementULongCounterValue<P0>(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfDecrementULongCounterValue ( provider : super::super::Foundation:: HANDLE , instance : *mut PERF_COUNTERSET_INSTANCE , counterid : u32 , value : u32 ) -> u32 ); |
| PerfDecrementULongCounterValue(provider.into_param().abi(), instance, counterid, value) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfDecrementULongLongCounterValue<P0>(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfDecrementULongLongCounterValue ( provider : super::super::Foundation:: HANDLE , instance : *mut PERF_COUNTERSET_INSTANCE , counterid : u32 , value : u64 ) -> u32 ); |
| PerfDecrementULongLongCounterValue(provider.into_param().abi(), instance, counterid, value) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfDeleteCounters<P0>(hquery: P0, pcounters: *mut PERF_COUNTER_IDENTIFIER, cbcounters: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<PerfQueryHandle>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfDeleteCounters ( hquery : PerfQueryHandle , pcounters : *mut PERF_COUNTER_IDENTIFIER , cbcounters : u32 ) -> u32 ); |
| PerfDeleteCounters(hquery.into_param().abi(), pcounters, cbcounters) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfDeleteInstance<P0>(provider: P0, instanceblock: *const PERF_COUNTERSET_INSTANCE) -> u32 |
| where |
| P0: ::windows::core::IntoParam<PerfProviderHandle>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfDeleteInstance ( provider : PerfProviderHandle , instanceblock : *const PERF_COUNTERSET_INSTANCE ) -> u32 ); |
| PerfDeleteInstance(provider.into_param().abi(), instanceblock) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfEnumerateCounterSet<P0>(szmachine: P0, pcountersetids: ::core::option::Option<&mut [::windows::core::GUID]>, pccountersetidsactual: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfEnumerateCounterSet ( szmachine : ::windows::core::PCWSTR , pcountersetids : *mut ::windows::core::GUID , ccountersetids : u32 , pccountersetidsactual : *mut u32 ) -> u32 ); |
| PerfEnumerateCounterSet(szmachine.into_param().abi(), ::core::mem::transmute(pcountersetids.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pcountersetids.as_deref().map_or(0, |slice| slice.len() as _), pccountersetidsactual) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfEnumerateCounterSetInstances<P0>(szmachine: P0, pcountersetid: *const ::windows::core::GUID, pinstances: ::core::option::Option<*mut PERF_INSTANCE_HEADER>, cbinstances: u32, pcbinstancesactual: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfEnumerateCounterSetInstances ( szmachine : ::windows::core::PCWSTR , pcountersetid : *const ::windows::core::GUID , pinstances : *mut PERF_INSTANCE_HEADER , cbinstances : u32 , pcbinstancesactual : *mut u32 ) -> u32 ); |
| PerfEnumerateCounterSetInstances(szmachine.into_param().abi(), pcountersetid, ::core::mem::transmute(pinstances.unwrap_or(::std::ptr::null_mut())), cbinstances, pcbinstancesactual) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfIncrementULongCounterValue<P0>(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfIncrementULongCounterValue ( provider : super::super::Foundation:: HANDLE , instance : *mut PERF_COUNTERSET_INSTANCE , counterid : u32 , value : u32 ) -> u32 ); |
| PerfIncrementULongCounterValue(provider.into_param().abi(), instance, counterid, value) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfIncrementULongLongCounterValue<P0>(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfIncrementULongLongCounterValue ( provider : super::super::Foundation:: HANDLE , instance : *mut PERF_COUNTERSET_INSTANCE , counterid : u32 , value : u64 ) -> u32 ); |
| PerfIncrementULongLongCounterValue(provider.into_param().abi(), instance, counterid, value) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfOpenQueryHandle<P0>(szmachine: P0, phquery: *mut PerfQueryHandle) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfOpenQueryHandle ( szmachine : ::windows::core::PCWSTR , phquery : *mut PerfQueryHandle ) -> u32 ); |
| PerfOpenQueryHandle(szmachine.into_param().abi(), phquery) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfQueryCounterData<P0>(hquery: P0, pcounterblock: ::core::option::Option<*mut PERF_DATA_HEADER>, cbcounterblock: u32, pcbcounterblockactual: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<PerfQueryHandle>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfQueryCounterData ( hquery : PerfQueryHandle , pcounterblock : *mut PERF_DATA_HEADER , cbcounterblock : u32 , pcbcounterblockactual : *mut u32 ) -> u32 ); |
| PerfQueryCounterData(hquery.into_param().abi(), ::core::mem::transmute(pcounterblock.unwrap_or(::std::ptr::null_mut())), cbcounterblock, pcbcounterblockactual) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfQueryCounterInfo<P0>(hquery: P0, pcounters: ::core::option::Option<*mut PERF_COUNTER_IDENTIFIER>, cbcounters: u32, pcbcountersactual: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<PerfQueryHandle>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfQueryCounterInfo ( hquery : PerfQueryHandle , pcounters : *mut PERF_COUNTER_IDENTIFIER , cbcounters : u32 , pcbcountersactual : *mut u32 ) -> u32 ); |
| PerfQueryCounterInfo(hquery.into_param().abi(), ::core::mem::transmute(pcounters.unwrap_or(::std::ptr::null_mut())), cbcounters, pcbcountersactual) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfQueryCounterSetRegistrationInfo<P0>(szmachine: P0, pcountersetid: *const ::windows::core::GUID, requestcode: PerfRegInfoType, requestlangid: u32, pbreginfo: ::core::option::Option<&mut [u8]>, pcbreginfoactual: *mut u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfQueryCounterSetRegistrationInfo ( szmachine : ::windows::core::PCWSTR , pcountersetid : *const ::windows::core::GUID , requestcode : PerfRegInfoType , requestlangid : u32 , pbreginfo : *mut u8 , cbreginfo : u32 , pcbreginfoactual : *mut u32 ) -> u32 ); |
| PerfQueryCounterSetRegistrationInfo(szmachine.into_param().abi(), pcountersetid, requestcode, requestlangid, ::core::mem::transmute(pbreginfo.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pbreginfo.as_deref().map_or(0, |slice| slice.len() as _), pcbreginfoactual) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfQueryInstance<P0, P1>(providerhandle: P0, countersetguid: *const ::windows::core::GUID, name: P1, id: u32) -> *mut PERF_COUNTERSET_INSTANCE |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfQueryInstance ( providerhandle : super::super::Foundation:: HANDLE , countersetguid : *const ::windows::core::GUID , name : ::windows::core::PCWSTR , id : u32 ) -> *mut PERF_COUNTERSET_INSTANCE ); |
| PerfQueryInstance(providerhandle.into_param().abi(), countersetguid, name.into_param().abi(), id) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfSetCounterRefValue<P0>(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, address: *const ::core::ffi::c_void) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfSetCounterRefValue ( provider : super::super::Foundation:: HANDLE , instance : *mut PERF_COUNTERSET_INSTANCE , counterid : u32 , address : *const ::core::ffi::c_void ) -> u32 ); |
| PerfSetCounterRefValue(provider.into_param().abi(), instance, counterid, address) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfSetCounterSetInfo<P0>(providerhandle: P0, template: *mut PERF_COUNTERSET_INFO, templatesize: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfSetCounterSetInfo ( providerhandle : super::super::Foundation:: HANDLE , template : *mut PERF_COUNTERSET_INFO , templatesize : u32 ) -> u32 ); |
| PerfSetCounterSetInfo(providerhandle.into_param().abi(), template, templatesize) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfSetULongCounterValue<P0>(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfSetULongCounterValue ( provider : super::super::Foundation:: HANDLE , instance : *mut PERF_COUNTERSET_INSTANCE , counterid : u32 , value : u32 ) -> u32 ); |
| PerfSetULongCounterValue(provider.into_param().abi(), instance, counterid, value) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn PerfSetULongLongCounterValue<P0>(provider: P0, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32 |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfSetULongLongCounterValue ( provider : super::super::Foundation:: HANDLE , instance : *mut PERF_COUNTERSET_INSTANCE , counterid : u32 , value : u64 ) -> u32 ); |
| PerfSetULongLongCounterValue(provider.into_param().abi(), instance, counterid, value) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfStartProvider(providerguid: *const ::windows::core::GUID, controlcallback: PERFLIBREQUEST, phprovider: *mut PerfProviderHandle) -> u32 { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfStartProvider ( providerguid : *const ::windows::core::GUID , controlcallback : PERFLIBREQUEST , phprovider : *mut PerfProviderHandle ) -> u32 ); |
| PerfStartProvider(providerguid, controlcallback, phprovider) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfStartProviderEx(providerguid: *const ::windows::core::GUID, providercontext: ::core::option::Option<*const PERF_PROVIDER_CONTEXT>, provider: *mut PerfProviderHandle) -> u32 { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfStartProviderEx ( providerguid : *const ::windows::core::GUID , providercontext : *const PERF_PROVIDER_CONTEXT , provider : *mut PerfProviderHandle ) -> u32 ); |
| PerfStartProviderEx(providerguid, ::core::mem::transmute(providercontext.unwrap_or(::std::ptr::null())), provider) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn PerfStopProvider<P0>(providerhandle: P0) -> u32 |
| where |
| P0: ::windows::core::IntoParam<PerfProviderHandle>, |
| { |
| ::windows_targets::link ! ( "advapi32.dll""system" fn PerfStopProvider ( providerhandle : PerfProviderHandle ) -> u32 ); |
| PerfStopProvider(providerhandle.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn QueryPerformanceCounter(lpperformancecount: *mut i64) -> super::super::Foundation::BOOL { |
| ::windows_targets::link ! ( "kernel32.dll""system" fn QueryPerformanceCounter ( lpperformancecount : *mut i64 ) -> super::super::Foundation:: BOOL ); |
| QueryPerformanceCounter(lpperformancecount) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn QueryPerformanceFrequency(lpfrequency: *mut i64) -> super::super::Foundation::BOOL { |
| ::windows_targets::link ! ( "kernel32.dll""system" fn QueryPerformanceFrequency ( lpfrequency : *mut i64 ) -> super::super::Foundation:: BOOL ); |
| QueryPerformanceFrequency(lpfrequency) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn RestorePerfRegistryFromFileW<P0, P1>(szfilename: P0, szlangid: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn RestorePerfRegistryFromFileW ( szfilename : ::windows::core::PCWSTR , szlangid : ::windows::core::PCWSTR ) -> u32 ); |
| RestorePerfRegistryFromFileW(szfilename.into_param().abi(), szlangid.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn SetServiceAsTrustedA<P0, P1>(szreserved: P0, szservicename: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn SetServiceAsTrustedA ( szreserved : ::windows::core::PCSTR , szservicename : ::windows::core::PCSTR ) -> u32 ); |
| SetServiceAsTrustedA(szreserved.into_param().abi(), szservicename.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn SetServiceAsTrustedW<P0, P1>(szreserved: P0, szservicename: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn SetServiceAsTrustedW ( szreserved : ::windows::core::PCWSTR , szservicename : ::windows::core::PCWSTR ) -> u32 ); |
| SetServiceAsTrustedW(szreserved.into_param().abi(), szservicename.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn UnloadPerfCounterTextStringsA<P0, P1>(lpcommandline: P0, bquietmodearg: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn UnloadPerfCounterTextStringsA ( lpcommandline : ::windows::core::PCSTR , bquietmodearg : super::super::Foundation:: BOOL ) -> u32 ); |
| UnloadPerfCounterTextStringsA(lpcommandline.into_param().abi(), bquietmodearg.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn UnloadPerfCounterTextStringsW<P0, P1>(lpcommandline: P0, bquietmodearg: P1) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn UnloadPerfCounterTextStringsW ( lpcommandline : ::windows::core::PCWSTR , bquietmodearg : super::super::Foundation:: BOOL ) -> u32 ); |
| UnloadPerfCounterTextStringsW(lpcommandline.into_param().abi(), bquietmodearg.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn UpdatePerfNameFilesA<P0, P1, P2>(sznewctrfilepath: P0, sznewhlpfilepath: P1, szlanguageid: P2, dwflags: usize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| P2: ::windows::core::IntoParam<::windows::core::PCSTR>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn UpdatePerfNameFilesA ( sznewctrfilepath : ::windows::core::PCSTR , sznewhlpfilepath : ::windows::core::PCSTR , szlanguageid : ::windows::core::PCSTR , dwflags : usize ) -> u32 ); |
| UpdatePerfNameFilesA(sznewctrfilepath.into_param().abi(), sznewhlpfilepath.into_param().abi(), szlanguageid.into_param().abi(), dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[inline] |
| pub unsafe fn UpdatePerfNameFilesW<P0, P1, P2>(sznewctrfilepath: P0, sznewhlpfilepath: P1, szlanguageid: P2, dwflags: usize) -> u32 |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P2: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| ::windows_targets::link ! ( "loadperf.dll""system" fn UpdatePerfNameFilesW ( sznewctrfilepath : ::windows::core::PCWSTR , sznewhlpfilepath : ::windows::core::PCWSTR , szlanguageid : ::windows::core::PCWSTR , dwflags : usize ) -> u32 ); |
| UpdatePerfNameFilesW(sznewctrfilepath.into_param().abi(), sznewhlpfilepath.into_param().abi(), szlanguageid.into_param().abi(), dwflags) |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct DICounterItem(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl DICounterItem {} |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(DICounterItem, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for DICounterItem { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for DICounterItem {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for DICounterItem { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DICounterItem").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for DICounterItem { |
| type Vtable = DICounterItem_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for DICounterItem { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for DICounterItem { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc08c4ff2_0e2e_11cf_942c_008029004347); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct DICounterItem_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct DILogFileItem(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl DILogFileItem {} |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(DILogFileItem, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for DILogFileItem { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for DILogFileItem {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for DILogFileItem { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DILogFileItem").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for DILogFileItem { |
| type Vtable = DILogFileItem_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for DILogFileItem { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for DILogFileItem { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8d093ffc_f777_4917_82d1_833fbc54c58f); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct DILogFileItem_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct DISystemMonitor(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl DISystemMonitor {} |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(DISystemMonitor, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for DISystemMonitor { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for DISystemMonitor {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for DISystemMonitor { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DISystemMonitor").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for DISystemMonitor { |
| type Vtable = DISystemMonitor_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for DISystemMonitor { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for DISystemMonitor { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x13d73d81_c32e_11cf_9398_00aa00a3ddea); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct DISystemMonitor_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct DISystemMonitorEvents(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl DISystemMonitorEvents {} |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(DISystemMonitorEvents, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for DISystemMonitorEvents { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for DISystemMonitorEvents {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for DISystemMonitorEvents { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DISystemMonitorEvents").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for DISystemMonitorEvents { |
| type Vtable = DISystemMonitorEvents_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for DISystemMonitorEvents { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for DISystemMonitorEvents { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x84979930_4ab3_11cf_943a_008029004347); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct DISystemMonitorEvents_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct DISystemMonitorInternal(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl DISystemMonitorInternal {} |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(DISystemMonitorInternal, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for DISystemMonitorInternal { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for DISystemMonitorInternal {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for DISystemMonitorInternal { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DISystemMonitorInternal").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for DISystemMonitorInternal { |
| type Vtable = DISystemMonitorInternal_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for DISystemMonitorInternal { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for DISystemMonitorInternal { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x194eb242_c32c_11cf_9398_00aa00a3ddea); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct DISystemMonitorInternal_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IAlertDataCollector(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IAlertDataCollector { |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn DataCollectorSet(&self) -> ::windows::core::Result<IDataCollectorSet> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollectorSet>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorSet)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetDataCollectorSet<P0>(&self, group: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollectorSet>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetDataCollectorSet)(::windows::core::Interface::as_raw(self), group.into_param().abi()).ok() |
| } |
| pub unsafe fn DataCollectorType(&self) -> ::windows::core::Result<DataCollectorType> { |
| let mut result__ = ::windows::core::zeroed::<DataCollectorType>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result<AutoPathFormat> { |
| let mut result__ = ::windows::core::zeroed::<AutoPathFormat>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormat)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() |
| } |
| pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormatPattern<P0>(&self, pattern: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into_param().abi()).ok() |
| } |
| pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLatestOutputLocation<P0>(&self, path: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogAppend(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogAppend)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogAppend<P0>(&self, append: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogAppend)(::windows::core::Interface::as_raw(self), append.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogCircular(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogCircular)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogCircular<P0>(&self, circular: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogCircular)(::windows::core::Interface::as_raw(self), circular.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogOverwrite(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogOverwrite)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogOverwrite<P0>(&self, overwrite: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite.into_param().abi()).ok() |
| } |
| pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Index(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.Index)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() |
| } |
| pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetXml<P0>(&self, xml: P0) -> ::windows::core::Result<IValueMap> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn CreateOutputLocation<P0>(&self, latest: P0) -> ::windows::core::Result<::windows::core::BSTR> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn AlertThresholds(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).AlertThresholds)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetAlertThresholds(&self, alerts: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetAlertThresholds)(::windows::core::Interface::as_raw(self), alerts).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn EventLog(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).EventLog)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetEventLog<P0>(&self, log: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetEventLog)(::windows::core::Interface::as_raw(self), log.into_param().abi()).ok() |
| } |
| pub unsafe fn SampleInterval(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).SampleInterval)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSampleInterval(&self, interval: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSampleInterval)(::windows::core::Interface::as_raw(self), interval).ok() |
| } |
| pub unsafe fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTask<P0>(&self, task: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), task.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn TaskRunAsSelf(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).TaskRunAsSelf)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetTaskRunAsSelf<P0>(&self, runasself: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetTaskRunAsSelf)(::windows::core::Interface::as_raw(self), runasself.into_param().abi()).ok() |
| } |
| pub unsafe fn TaskArguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).TaskArguments)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTaskArguments<P0>(&self, task: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetTaskArguments)(::windows::core::Interface::as_raw(self), task.into_param().abi()).ok() |
| } |
| pub unsafe fn TaskUserTextArguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).TaskUserTextArguments)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTaskUserTextArguments<P0>(&self, task: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetTaskUserTextArguments)(::windows::core::Interface::as_raw(self), task.into_param().abi()).ok() |
| } |
| pub unsafe fn TriggerDataCollectorSet(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).TriggerDataCollectorSet)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTriggerDataCollectorSet<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetTriggerDataCollectorSet)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IAlertDataCollector, ::windows::core::IUnknown, super::Com::IDispatch, IDataCollector); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IAlertDataCollector { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IAlertDataCollector {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IAlertDataCollector { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IAlertDataCollector").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IAlertDataCollector { |
| type Vtable = IAlertDataCollector_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IAlertDataCollector { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IAlertDataCollector { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837516_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAlertDataCollector_Vtbl { |
| pub base__: IDataCollector_Vtbl, |
| #[cfg(feature = "Win32_System_Com")] |
| pub AlertThresholds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, alerts: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| AlertThresholds: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetAlertThresholds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, alerts: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetAlertThresholds: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub EventLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, log: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| EventLog: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetEventLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, log: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetEventLog: usize, |
| pub SampleInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interval: *mut u32) -> ::windows::core::HRESULT, |
| pub SetSampleInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interval: u32) -> ::windows::core::HRESULT, |
| pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub TaskRunAsSelf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runasself: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| TaskRunAsSelf: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetTaskRunAsSelf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runasself: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetTaskRunAsSelf: usize, |
| pub TaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetTaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub TaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetTaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub TriggerDataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetTriggerDataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IApiTracingDataCollector(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IApiTracingDataCollector { |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn DataCollectorSet(&self) -> ::windows::core::Result<IDataCollectorSet> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollectorSet>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorSet)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetDataCollectorSet<P0>(&self, group: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollectorSet>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetDataCollectorSet)(::windows::core::Interface::as_raw(self), group.into_param().abi()).ok() |
| } |
| pub unsafe fn DataCollectorType(&self) -> ::windows::core::Result<DataCollectorType> { |
| let mut result__ = ::windows::core::zeroed::<DataCollectorType>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result<AutoPathFormat> { |
| let mut result__ = ::windows::core::zeroed::<AutoPathFormat>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormat)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() |
| } |
| pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormatPattern<P0>(&self, pattern: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into_param().abi()).ok() |
| } |
| pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLatestOutputLocation<P0>(&self, path: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogAppend(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogAppend)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogAppend<P0>(&self, append: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogAppend)(::windows::core::Interface::as_raw(self), append.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogCircular(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogCircular)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogCircular<P0>(&self, circular: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogCircular)(::windows::core::Interface::as_raw(self), circular.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogOverwrite(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogOverwrite)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogOverwrite<P0>(&self, overwrite: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite.into_param().abi()).ok() |
| } |
| pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Index(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.Index)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() |
| } |
| pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetXml<P0>(&self, xml: P0) -> ::windows::core::Result<IValueMap> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn CreateOutputLocation<P0>(&self, latest: P0) -> ::windows::core::Result<::windows::core::BSTR> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogApiNamesOnly(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).LogApiNamesOnly)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogApiNamesOnly<P0>(&self, logapinames: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetLogApiNamesOnly)(::windows::core::Interface::as_raw(self), logapinames.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogApisRecursively(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).LogApisRecursively)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogApisRecursively<P0>(&self, logrecursively: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetLogApisRecursively)(::windows::core::Interface::as_raw(self), logrecursively.into_param().abi()).ok() |
| } |
| pub unsafe fn ExePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).ExePath)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetExePath<P0>(&self, exepath: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetExePath)(::windows::core::Interface::as_raw(self), exepath.into_param().abi()).ok() |
| } |
| pub unsafe fn LogFilePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).LogFilePath)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogFilePath<P0>(&self, logfilepath: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetLogFilePath)(::windows::core::Interface::as_raw(self), logfilepath.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn IncludeModules(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).IncludeModules)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetIncludeModules(&self, includemodules: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetIncludeModules)(::windows::core::Interface::as_raw(self), includemodules).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn IncludeApis(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).IncludeApis)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetIncludeApis(&self, includeapis: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetIncludeApis)(::windows::core::Interface::as_raw(self), includeapis).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn ExcludeApis(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).ExcludeApis)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetExcludeApis(&self, excludeapis: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetExcludeApis)(::windows::core::Interface::as_raw(self), excludeapis).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IApiTracingDataCollector, ::windows::core::IUnknown, super::Com::IDispatch, IDataCollector); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IApiTracingDataCollector { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IApiTracingDataCollector {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IApiTracingDataCollector { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IApiTracingDataCollector").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IApiTracingDataCollector { |
| type Vtable = IApiTracingDataCollector_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IApiTracingDataCollector { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IApiTracingDataCollector { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0383751a_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IApiTracingDataCollector_Vtbl { |
| pub base__: IDataCollector_Vtbl, |
| #[cfg(feature = "Win32_Foundation")] |
| pub LogApiNamesOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logapinames: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| LogApiNamesOnly: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetLogApiNamesOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logapinames: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetLogApiNamesOnly: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub LogApisRecursively: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logrecursively: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| LogApisRecursively: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetLogApisRecursively: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logrecursively: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetLogApisRecursively: usize, |
| pub ExePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, exepath: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetExePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, exepath: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub LogFilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilepath: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetLogFilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilepath: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub IncludeModules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includemodules: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| IncludeModules: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetIncludeModules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includemodules: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetIncludeModules: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub IncludeApis: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includeapis: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| IncludeApis: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetIncludeApis: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includeapis: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetIncludeApis: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub ExcludeApis: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, excludeapis: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| ExcludeApis: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetExcludeApis: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, excludeapis: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetExcludeApis: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IConfigurationDataCollector(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IConfigurationDataCollector { |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn DataCollectorSet(&self) -> ::windows::core::Result<IDataCollectorSet> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollectorSet>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorSet)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetDataCollectorSet<P0>(&self, group: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollectorSet>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetDataCollectorSet)(::windows::core::Interface::as_raw(self), group.into_param().abi()).ok() |
| } |
| pub unsafe fn DataCollectorType(&self) -> ::windows::core::Result<DataCollectorType> { |
| let mut result__ = ::windows::core::zeroed::<DataCollectorType>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result<AutoPathFormat> { |
| let mut result__ = ::windows::core::zeroed::<AutoPathFormat>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormat)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() |
| } |
| pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormatPattern<P0>(&self, pattern: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into_param().abi()).ok() |
| } |
| pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLatestOutputLocation<P0>(&self, path: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogAppend(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogAppend)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogAppend<P0>(&self, append: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogAppend)(::windows::core::Interface::as_raw(self), append.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogCircular(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogCircular)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogCircular<P0>(&self, circular: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogCircular)(::windows::core::Interface::as_raw(self), circular.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogOverwrite(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogOverwrite)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogOverwrite<P0>(&self, overwrite: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite.into_param().abi()).ok() |
| } |
| pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Index(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.Index)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() |
| } |
| pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetXml<P0>(&self, xml: P0) -> ::windows::core::Result<IValueMap> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn CreateOutputLocation<P0>(&self, latest: P0) -> ::windows::core::Result<::windows::core::BSTR> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn FileMaxCount(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).FileMaxCount)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileMaxCount(&self, count: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetFileMaxCount)(::windows::core::Interface::as_raw(self), count).ok() |
| } |
| pub unsafe fn FileMaxRecursiveDepth(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).FileMaxRecursiveDepth)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileMaxRecursiveDepth(&self, depth: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetFileMaxRecursiveDepth)(::windows::core::Interface::as_raw(self), depth).ok() |
| } |
| pub unsafe fn FileMaxTotalSize(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).FileMaxTotalSize)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileMaxTotalSize(&self, size: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetFileMaxTotalSize)(::windows::core::Interface::as_raw(self), size).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Files(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).Files)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetFiles(&self, files: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetFiles)(::windows::core::Interface::as_raw(self), files).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn ManagementQueries(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).ManagementQueries)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetManagementQueries(&self, queries: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetManagementQueries)(::windows::core::Interface::as_raw(self), queries).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn QueryNetworkAdapters(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).QueryNetworkAdapters)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetQueryNetworkAdapters<P0>(&self, network: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetQueryNetworkAdapters)(::windows::core::Interface::as_raw(self), network.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn RegistryKeys(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).RegistryKeys)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetRegistryKeys(&self, query: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetRegistryKeys)(::windows::core::Interface::as_raw(self), query).ok() |
| } |
| pub unsafe fn RegistryMaxRecursiveDepth(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).RegistryMaxRecursiveDepth)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetRegistryMaxRecursiveDepth(&self, depth: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetRegistryMaxRecursiveDepth)(::windows::core::Interface::as_raw(self), depth).ok() |
| } |
| pub unsafe fn SystemStateFile(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).SystemStateFile)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSystemStateFile<P0>(&self, filename: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSystemStateFile)(::windows::core::Interface::as_raw(self), filename.into_param().abi()).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IConfigurationDataCollector, ::windows::core::IUnknown, super::Com::IDispatch, IDataCollector); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IConfigurationDataCollector { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IConfigurationDataCollector {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IConfigurationDataCollector { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IConfigurationDataCollector").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IConfigurationDataCollector { |
| type Vtable = IConfigurationDataCollector_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IConfigurationDataCollector { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IConfigurationDataCollector { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837514_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IConfigurationDataCollector_Vtbl { |
| pub base__: IDataCollector_Vtbl, |
| pub FileMaxCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut u32) -> ::windows::core::HRESULT, |
| pub SetFileMaxCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: u32) -> ::windows::core::HRESULT, |
| pub FileMaxRecursiveDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, depth: *mut u32) -> ::windows::core::HRESULT, |
| pub SetFileMaxRecursiveDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, depth: u32) -> ::windows::core::HRESULT, |
| pub FileMaxTotalSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: *mut u32) -> ::windows::core::HRESULT, |
| pub SetFileMaxTotalSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: u32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Files: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, files: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Files: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, files: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetFiles: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub ManagementQueries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, queries: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| ManagementQueries: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetManagementQueries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, queries: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetManagementQueries: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub QueryNetworkAdapters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, network: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| QueryNetworkAdapters: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetQueryNetworkAdapters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, network: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetQueryNetworkAdapters: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub RegistryKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, query: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| RegistryKeys: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetRegistryKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, query: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetRegistryKeys: usize, |
| pub RegistryMaxRecursiveDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, depth: *mut u32) -> ::windows::core::HRESULT, |
| pub SetRegistryMaxRecursiveDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, depth: u32) -> ::windows::core::HRESULT, |
| pub SystemStateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetSystemStateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| pub struct ICounterItem(::windows::core::IUnknown); |
| impl ICounterItem { |
| pub unsafe fn Value(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn Color(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).Color)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetWidth(&self, iwidth: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetWidth)(::windows::core::Interface::as_raw(self), iwidth).ok() |
| } |
| pub unsafe fn Width(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Width)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLineStyle(&self, ilinestyle: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetLineStyle)(::windows::core::Interface::as_raw(self), ilinestyle).ok() |
| } |
| pub unsafe fn LineStyle(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).LineStyle)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetScaleFactor(&self, iscale: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetScaleFactor)(::windows::core::Interface::as_raw(self), iscale).ok() |
| } |
| pub unsafe fn ScaleFactor(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).ScaleFactor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn GetValue(&self, value: *mut f64, status: *mut i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), value, status).ok() |
| } |
| pub unsafe fn GetStatistics(&self, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).GetStatistics)(::windows::core::Interface::as_raw(self), max, min, avg, status).ok() |
| } |
| } |
| ::windows::imp::interface_hierarchy!(ICounterItem, ::windows::core::IUnknown); |
| impl ::core::cmp::PartialEq for ICounterItem { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ICounterItem {} |
| impl ::core::fmt::Debug for ICounterItem { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ICounterItem").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::Interface for ICounterItem { |
| type Vtable = ICounterItem_Vtbl; |
| } |
| impl ::core::clone::Clone for ICounterItem { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for ICounterItem { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x771a9520_ee28_11ce_941e_008029004347); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ICounterItem_Vtbl { |
| pub base__: ::windows::core::IUnknown_Vtbl, |
| pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdblvalue: *mut f64) -> ::windows::core::HRESULT, |
| pub SetColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| pub Color: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iwidth: i32) -> ::windows::core::HRESULT, |
| pub Width: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub SetLineStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ilinestyle: i32) -> ::windows::core::HRESULT, |
| pub LineStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub SetScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iscale: i32) -> ::windows::core::HRESULT, |
| pub ScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut f64, status: *mut i32) -> ::windows::core::HRESULT, |
| pub GetStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| pub struct ICounterItem2(::windows::core::IUnknown); |
| impl ICounterItem2 { |
| pub unsafe fn Value(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).base__.Value)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn Color(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).base__.Color)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetWidth(&self, iwidth: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetWidth)(::windows::core::Interface::as_raw(self), iwidth).ok() |
| } |
| pub unsafe fn Width(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.Width)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLineStyle(&self, ilinestyle: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetLineStyle)(::windows::core::Interface::as_raw(self), ilinestyle).ok() |
| } |
| pub unsafe fn LineStyle(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.LineStyle)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetScaleFactor(&self, iscale: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetScaleFactor)(::windows::core::Interface::as_raw(self), iscale).ok() |
| } |
| pub unsafe fn ScaleFactor(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.ScaleFactor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn GetValue(&self, value: *mut f64, status: *mut i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.GetValue)(::windows::core::Interface::as_raw(self), value, status).ok() |
| } |
| pub unsafe fn GetStatistics(&self, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.GetStatistics)(::windows::core::Interface::as_raw(self), max, min, avg, status).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetSelected<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetSelected)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Selected(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).Selected)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetVisible<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetVisible)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Visible(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).Visible)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn GetDataAt(&self, iindex: i32, iwhich: SysmonDataType) -> ::windows::core::Result<super::Com::VARIANT> { |
| let mut result__ = ::windows::core::zeroed::<super::Com::VARIANT>(); |
| (::windows::core::Interface::vtable(self).GetDataAt)(::windows::core::Interface::as_raw(self), iindex, iwhich, &mut result__).from_abi(result__) |
| } |
| } |
| ::windows::imp::interface_hierarchy!(ICounterItem2, ::windows::core::IUnknown, ICounterItem); |
| impl ::core::cmp::PartialEq for ICounterItem2 { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ICounterItem2 {} |
| impl ::core::fmt::Debug for ICounterItem2 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ICounterItem2").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::Interface for ICounterItem2 { |
| type Vtable = ICounterItem2_Vtbl; |
| } |
| impl ::core::clone::Clone for ICounterItem2 { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for ICounterItem2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeefcd4e1_ea1c_4435_b7f4_e341ba03b4f9); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ICounterItem2_Vtbl { |
| pub base__: ICounterItem_Vtbl, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetSelected: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Selected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Selected: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetVisible: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Visible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Visible: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub GetDataAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: i32, iwhich: SysmonDataType, pvariant: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| GetDataAt: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct ICounters(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ICounters { |
| pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::IUnknown>(); |
| (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn get_Item(&self, index: super::Com::VARIANT) -> ::windows::core::Result<DICounterItem> { |
| let mut result__ = ::windows::core::zeroed::<DICounterItem>(); |
| (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Add<P0>(&self, pathname: P0) -> ::windows::core::Result<DICounterItem> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<DICounterItem>(); |
| (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), pathname.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Remove(&self, index: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index)).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(ICounters, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for ICounters { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for ICounters {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for ICounters { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ICounters").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for ICounters { |
| type Vtable = ICounters_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for ICounters { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for ICounters { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79167962_28fc_11cf_942f_008029004347); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ICounters_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plong: *mut i32) -> ::windows::core::HRESULT, |
| pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| get_Item: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pathname: ::std::mem::MaybeUninit<::windows::core::BSTR>, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Add: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Remove: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IDataCollector(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IDataCollector { |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn DataCollectorSet(&self) -> ::windows::core::Result<IDataCollectorSet> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollectorSet>(); |
| (::windows::core::Interface::vtable(self).DataCollectorSet)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetDataCollectorSet<P0>(&self, group: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollectorSet>, |
| { |
| (::windows::core::Interface::vtable(self).SetDataCollectorSet)(::windows::core::Interface::as_raw(self), group.into_param().abi()).ok() |
| } |
| pub unsafe fn DataCollectorType(&self) -> ::windows::core::Result<DataCollectorType> { |
| let mut result__ = ::windows::core::zeroed::<DataCollectorType>(); |
| (::windows::core::Interface::vtable(self).DataCollectorType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).FileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetFileName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result<AutoPathFormat> { |
| let mut result__ = ::windows::core::zeroed::<AutoPathFormat>(); |
| (::windows::core::Interface::vtable(self).FileNameFormat)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() |
| } |
| pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).FileNameFormatPattern)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormatPattern<P0>(&self, pattern: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into_param().abi()).ok() |
| } |
| pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).LatestOutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLatestOutputLocation<P0>(&self, path: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogAppend(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).LogAppend)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogAppend<P0>(&self, append: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetLogAppend)(::windows::core::Interface::as_raw(self), append.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogCircular(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).LogCircular)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogCircular<P0>(&self, circular: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetLogCircular)(::windows::core::Interface::as_raw(self), circular.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogOverwrite(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).LogOverwrite)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogOverwrite<P0>(&self, overwrite: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite.into_param().abi()).ok() |
| } |
| pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).OutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Index(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Index)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetIndex)(::windows::core::Interface::as_raw(self), index).ok() |
| } |
| pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetXml<P0>(&self, xml: P0) -> ::windows::core::Result<IValueMap> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).SetXml)(::windows::core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn CreateOutputLocation<P0>(&self, latest: P0) -> ::windows::core::Result<::windows::core::BSTR> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IDataCollector, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IDataCollector { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IDataCollector {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IDataCollector { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IDataCollector").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IDataCollector { |
| type Vtable = IDataCollector_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IDataCollector { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IDataCollector { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x038374ff_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IDataCollector_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| #[cfg(feature = "Win32_System_Com")] |
| pub DataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| DataCollectorSet: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetDataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetDataCollectorSet: usize, |
| pub DataCollectorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut DataCollectorType) -> ::windows::core::HRESULT, |
| pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub FileNameFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: *mut AutoPathFormat) -> ::windows::core::HRESULT, |
| pub SetFileNameFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: AutoPathFormat) -> ::windows::core::HRESULT, |
| pub FileNameFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetFileNameFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub LatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetLatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub LogAppend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, append: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| LogAppend: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetLogAppend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, append: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetLogAppend: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub LogCircular: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, circular: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| LogCircular: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetLogCircular: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, circular: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetLogCircular: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub LogOverwrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| LogOverwrite: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetLogOverwrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetLogOverwrite: usize, |
| pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub OutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub Index: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: *mut i32) -> ::windows::core::HRESULT, |
| pub SetIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, |
| pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: ::std::mem::MaybeUninit<::windows::core::BSTR>, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetXml: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub CreateOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, latest: super::super::Foundation::VARIANT_BOOL, location: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| CreateOutputLocation: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IDataCollectorCollection(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IDataCollectorCollection { |
| pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn get_Item(&self, index: super::Com::VARIANT) -> ::windows::core::Result<IDataCollector> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollector>(); |
| (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::IUnknown>(); |
| (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Add<P0>(&self, collector: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollector>, |
| { |
| (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), collector.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Remove(&self, collector: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(collector)).ok() |
| } |
| pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn AddRange<P0>(&self, collectors: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollectorCollection>, |
| { |
| (::windows::core::Interface::vtable(self).AddRange)(::windows::core::Interface::as_raw(self), collectors.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn CreateDataCollectorFromXml<P0>(&self, bstrxml: P0, pvalidation: *mut ::core::option::Option<IValueMap>, pcollector: *mut ::core::option::Option<IDataCollector>) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).CreateDataCollectorFromXml)(::windows::core::Interface::as_raw(self), bstrxml.into_param().abi(), ::core::mem::transmute(pvalidation), ::core::mem::transmute(pcollector)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn CreateDataCollector(&self, r#type: DataCollectorType) -> ::windows::core::Result<IDataCollector> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollector>(); |
| (::windows::core::Interface::vtable(self).CreateDataCollector)(::windows::core::Interface::as_raw(self), r#type, &mut result__).from_abi(result__) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IDataCollectorCollection, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IDataCollectorCollection { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IDataCollectorCollection {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IDataCollectorCollection { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IDataCollectorCollection").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IDataCollectorCollection { |
| type Vtable = IDataCollectorCollection_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IDataCollectorCollection { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IDataCollectorCollection { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837502_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IDataCollectorCollection_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT, collector: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| get_Item: usize, |
| pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collector: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Add: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collector: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Remove: usize, |
| pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collectors: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| AddRange: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub CreateDataCollectorFromXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::std::mem::MaybeUninit<::windows::core::BSTR>, pvalidation: *mut *mut ::core::ffi::c_void, pcollector: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| CreateDataCollectorFromXml: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub CreateDataCollector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: DataCollectorType, collector: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| CreateDataCollector: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IDataCollectorSet(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IDataCollectorSet { |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn DataCollectors(&self) -> ::windows::core::Result<IDataCollectorCollection> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollectorCollection>(); |
| (::windows::core::Interface::vtable(self).DataCollectors)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Duration(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).Duration)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDuration(&self, seconds: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDuration)(::windows::core::Interface::as_raw(self), seconds).ok() |
| } |
| pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDescription<P0>(&self, description: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into_param().abi()).ok() |
| } |
| pub unsafe fn DescriptionUnresolved(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).DescriptionUnresolved)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDisplayName<P0>(&self, displayname: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), displayname.into_param().abi()).ok() |
| } |
| pub unsafe fn DisplayNameUnresolved(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).DisplayNameUnresolved)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Keywords(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).Keywords)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetKeywords(&self, keywords: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetKeywords)(::windows::core::Interface::as_raw(self), keywords).ok() |
| } |
| pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).LatestOutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLatestOutputLocation<P0>(&self, path: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into_param().abi()).ok() |
| } |
| pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).OutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn RootPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).RootPath)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetRootPath<P0>(&self, folder: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetRootPath)(::windows::core::Interface::as_raw(self), folder.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Segment(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).Segment)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetSegment<P0>(&self, segment: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetSegment)(::windows::core::Interface::as_raw(self), segment.into_param().abi()).ok() |
| } |
| pub unsafe fn SegmentMaxDuration(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).SegmentMaxDuration)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSegmentMaxDuration(&self, seconds: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSegmentMaxDuration)(::windows::core::Interface::as_raw(self), seconds).ok() |
| } |
| pub unsafe fn SegmentMaxSize(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).SegmentMaxSize)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSegmentMaxSize(&self, size: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSegmentMaxSize)(::windows::core::Interface::as_raw(self), size).ok() |
| } |
| pub unsafe fn SerialNumber(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).SerialNumber)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSerialNumber(&self, index: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSerialNumber)(::windows::core::Interface::as_raw(self), index).ok() |
| } |
| pub unsafe fn Server(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Server)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Status(&self) -> ::windows::core::Result<DataCollectorSetStatus> { |
| let mut result__ = ::windows::core::zeroed::<DataCollectorSetStatus>(); |
| (::windows::core::Interface::vtable(self).Status)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Subdirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Subdirectory)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSubdirectory<P0>(&self, folder: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSubdirectory)(::windows::core::Interface::as_raw(self), folder.into_param().abi()).ok() |
| } |
| pub unsafe fn SubdirectoryFormat(&self) -> ::windows::core::Result<AutoPathFormat> { |
| let mut result__ = ::windows::core::zeroed::<AutoPathFormat>(); |
| (::windows::core::Interface::vtable(self).SubdirectoryFormat)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSubdirectoryFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSubdirectoryFormat)(::windows::core::Interface::as_raw(self), format).ok() |
| } |
| pub unsafe fn SubdirectoryFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).SubdirectoryFormatPattern)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSubdirectoryFormatPattern<P0>(&self, pattern: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSubdirectoryFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into_param().abi()).ok() |
| } |
| pub unsafe fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTask<P0>(&self, task: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), task.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn TaskRunAsSelf(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).TaskRunAsSelf)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetTaskRunAsSelf<P0>(&self, runasself: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetTaskRunAsSelf)(::windows::core::Interface::as_raw(self), runasself.into_param().abi()).ok() |
| } |
| pub unsafe fn TaskArguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).TaskArguments)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTaskArguments<P0>(&self, task: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetTaskArguments)(::windows::core::Interface::as_raw(self), task.into_param().abi()).ok() |
| } |
| pub unsafe fn TaskUserTextArguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).TaskUserTextArguments)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTaskUserTextArguments<P0>(&self, usertext: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetTaskUserTextArguments)(::windows::core::Interface::as_raw(self), usertext.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Schedules(&self) -> ::windows::core::Result<IScheduleCollection> { |
| let mut result__ = ::windows::core::zeroed::<IScheduleCollection>(); |
| (::windows::core::Interface::vtable(self).Schedules)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SchedulesEnabled(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).SchedulesEnabled)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetSchedulesEnabled<P0>(&self, enabled: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetSchedulesEnabled)(::windows::core::Interface::as_raw(self), enabled.into_param().abi()).ok() |
| } |
| pub unsafe fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).UserAccount)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Security(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Security)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSecurity<P0>(&self, bstrsecurity: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSecurity)(::windows::core::Interface::as_raw(self), bstrsecurity.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn StopOnCompletion(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).StopOnCompletion)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetStopOnCompletion<P0>(&self, stop: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetStopOnCompletion)(::windows::core::Interface::as_raw(self), stop.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn DataManager(&self) -> ::windows::core::Result<IDataManager> { |
| let mut result__ = ::windows::core::zeroed::<IDataManager>(); |
| (::windows::core::Interface::vtable(self).DataManager)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetCredentials<P0, P1>(&self, user: P0, password: P1) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetCredentials)(::windows::core::Interface::as_raw(self), user.into_param().abi(), password.into_param().abi()).ok() |
| } |
| pub unsafe fn Query<P0, P1>(&self, name: P0, server: P1) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).Query)(::windows::core::Interface::as_raw(self), name.into_param().abi(), server.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Commit<P0, P1>(&self, name: P0, server: P1, mode: CommitMode) -> ::windows::core::Result<IValueMap> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).Commit)(::windows::core::Interface::as_raw(self), name.into_param().abi(), server.into_param().abi(), mode, &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Start<P0>(&self, synchronous: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).Start)(::windows::core::Interface::as_raw(self), synchronous.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Stop<P0>(&self, synchronous: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).Stop)(::windows::core::Interface::as_raw(self), synchronous.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetXml<P0>(&self, xml: P0) -> ::windows::core::Result<IValueMap> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).SetXml)(::windows::core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetValue<P0, P1>(&self, key: P0, value: P1) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), key.into_param().abi(), value.into_param().abi()).ok() |
| } |
| pub unsafe fn GetValue<P0>(&self, key: P0) -> ::windows::core::Result<::windows::core::BSTR> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), key.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IDataCollectorSet, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IDataCollectorSet { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IDataCollectorSet {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IDataCollectorSet { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IDataCollectorSet").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IDataCollectorSet { |
| type Vtable = IDataCollectorSet_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IDataCollectorSet { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IDataCollectorSet { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837520_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IDataCollectorSet_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| #[cfg(feature = "Win32_System_Com")] |
| pub DataCollectors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collectors: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| DataCollectors: usize, |
| pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: *mut u32) -> ::windows::core::HRESULT, |
| pub SetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: u32) -> ::windows::core::HRESULT, |
| pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub DescriptionUnresolved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descr: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub DisplayNameUnresolved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Keywords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keywords: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Keywords: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetKeywords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keywords: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetKeywords: usize, |
| pub LatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetLatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub OutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub RootPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetRootPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Segment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, segment: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Segment: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetSegment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, segment: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetSegment: usize, |
| pub SegmentMaxDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: *mut u32) -> ::windows::core::HRESULT, |
| pub SetSegmentMaxDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: u32) -> ::windows::core::HRESULT, |
| pub SegmentMaxSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: *mut u32) -> ::windows::core::HRESULT, |
| pub SetSegmentMaxSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: u32) -> ::windows::core::HRESULT, |
| pub SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: *mut u32) -> ::windows::core::HRESULT, |
| pub SetSerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::HRESULT, |
| pub Server: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut DataCollectorSetStatus) -> ::windows::core::HRESULT, |
| pub Subdirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetSubdirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SubdirectoryFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: *mut AutoPathFormat) -> ::windows::core::HRESULT, |
| pub SetSubdirectoryFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: AutoPathFormat) -> ::windows::core::HRESULT, |
| pub SubdirectoryFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetSubdirectoryFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub TaskRunAsSelf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runasself: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| TaskRunAsSelf: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetTaskRunAsSelf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runasself: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetTaskRunAsSelf: usize, |
| pub TaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetTaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub TaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usertext: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetTaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usertext: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Schedules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppschedules: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Schedules: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SchedulesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SchedulesEnabled: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetSchedulesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetSchedulesEnabled: usize, |
| pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub Security: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsecurity: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsecurity: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub StopOnCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stop: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| StopOnCompletion: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetStopOnCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stop: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetStopOnCompletion: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub DataManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datamanager: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| DataManager: usize, |
| pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::std::mem::MaybeUninit<::windows::core::BSTR>, password: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::BSTR>, server: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::BSTR>, server: ::std::mem::MaybeUninit<::windows::core::BSTR>, mode: CommitMode, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Commit: usize, |
| pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, synchronous: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Start: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, synchronous: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Stop: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: ::std::mem::MaybeUninit<::windows::core::BSTR>, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetXml: usize, |
| pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows::core::BSTR>, value: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows::core::BSTR>, value: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IDataCollectorSetCollection(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IDataCollectorSetCollection { |
| pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn get_Item(&self, index: super::Com::VARIANT) -> ::windows::core::Result<IDataCollectorSet> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollectorSet>(); |
| (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::IUnknown>(); |
| (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Add<P0>(&self, set: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollectorSet>, |
| { |
| (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), set.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Remove(&self, set: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(set)).ok() |
| } |
| pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn AddRange<P0>(&self, sets: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollectorSetCollection>, |
| { |
| (::windows::core::Interface::vtable(self).AddRange)(::windows::core::Interface::as_raw(self), sets.into_param().abi()).ok() |
| } |
| pub unsafe fn GetDataCollectorSets<P0, P1>(&self, server: P0, filter: P1) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).GetDataCollectorSets)(::windows::core::Interface::as_raw(self), server.into_param().abi(), filter.into_param().abi()).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IDataCollectorSetCollection, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IDataCollectorSetCollection { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IDataCollectorSetCollection {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IDataCollectorSetCollection { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IDataCollectorSetCollection").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IDataCollectorSetCollection { |
| type Vtable = IDataCollectorSetCollection_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IDataCollectorSetCollection { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IDataCollectorSetCollection { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837524_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IDataCollectorSetCollection_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT, set: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| get_Item: usize, |
| pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, set: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Add: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, set: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Remove: usize, |
| pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sets: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| AddRange: usize, |
| pub GetDataCollectorSets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::std::mem::MaybeUninit<::windows::core::BSTR>, filter: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IDataManager(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IDataManager { |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Enabled(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).Enabled)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetEnabled<P0>(&self, fenabled: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetEnabled)(::windows::core::Interface::as_raw(self), fenabled.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn CheckBeforeRunning(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).CheckBeforeRunning)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetCheckBeforeRunning<P0>(&self, fcheck: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetCheckBeforeRunning)(::windows::core::Interface::as_raw(self), fcheck.into_param().abi()).ok() |
| } |
| pub unsafe fn MinFreeDisk(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).MinFreeDisk)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMinFreeDisk(&self, minfreedisk: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetMinFreeDisk)(::windows::core::Interface::as_raw(self), minfreedisk).ok() |
| } |
| pub unsafe fn MaxSize(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).MaxSize)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMaxSize(&self, ulmaxsize: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetMaxSize)(::windows::core::Interface::as_raw(self), ulmaxsize).ok() |
| } |
| pub unsafe fn MaxFolderCount(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).MaxFolderCount)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMaxFolderCount(&self, ulmaxfoldercount: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetMaxFolderCount)(::windows::core::Interface::as_raw(self), ulmaxfoldercount).ok() |
| } |
| pub unsafe fn ResourcePolicy(&self) -> ::windows::core::Result<ResourcePolicy> { |
| let mut result__ = ::windows::core::zeroed::<ResourcePolicy>(); |
| (::windows::core::Interface::vtable(self).ResourcePolicy)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetResourcePolicy(&self, policy: ResourcePolicy) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetResourcePolicy)(::windows::core::Interface::as_raw(self), policy).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn FolderActions(&self) -> ::windows::core::Result<IFolderActionCollection> { |
| let mut result__ = ::windows::core::zeroed::<IFolderActionCollection>(); |
| (::windows::core::Interface::vtable(self).FolderActions)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn ReportSchema(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).ReportSchema)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetReportSchema<P0>(&self, reportschema: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetReportSchema)(::windows::core::Interface::as_raw(self), reportschema.into_param().abi()).ok() |
| } |
| pub unsafe fn ReportFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).ReportFileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetReportFileName<P0>(&self, pbstrfilename: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetReportFileName)(::windows::core::Interface::as_raw(self), pbstrfilename.into_param().abi()).ok() |
| } |
| pub unsafe fn RuleTargetFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).RuleTargetFileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetRuleTargetFileName<P0>(&self, filename: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetRuleTargetFileName)(::windows::core::Interface::as_raw(self), filename.into_param().abi()).ok() |
| } |
| pub unsafe fn EventsFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).EventsFileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetEventsFileName<P0>(&self, pbstrfilename: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetEventsFileName)(::windows::core::Interface::as_raw(self), pbstrfilename.into_param().abi()).ok() |
| } |
| pub unsafe fn Rules(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Rules)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetRules<P0>(&self, bstrxml: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetRules)(::windows::core::Interface::as_raw(self), bstrxml.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Run<P0>(&self, steps: DataManagerSteps, bstrfolder: P0) -> ::windows::core::Result<IValueMap> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).Run)(::windows::core::Interface::as_raw(self), steps, bstrfolder.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Extract<P0, P1>(&self, cabfilename: P0, destinationpath: P1) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).Extract)(::windows::core::Interface::as_raw(self), cabfilename.into_param().abi(), destinationpath.into_param().abi()).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IDataManager, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IDataManager { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IDataManager {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IDataManager { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IDataManager").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IDataManager { |
| type Vtable = IDataManager_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IDataManager { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IDataManager { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837541_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IDataManager_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Enabled: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetEnabled: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub CheckBeforeRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfcheck: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| CheckBeforeRunning: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetCheckBeforeRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fcheck: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetCheckBeforeRunning: usize, |
| pub MinFreeDisk: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minfreedisk: *mut u32) -> ::windows::core::HRESULT, |
| pub SetMinFreeDisk: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minfreedisk: u32) -> ::windows::core::HRESULT, |
| pub MaxSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulmaxsize: *mut u32) -> ::windows::core::HRESULT, |
| pub SetMaxSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulmaxsize: u32) -> ::windows::core::HRESULT, |
| pub MaxFolderCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulmaxfoldercount: *mut u32) -> ::windows::core::HRESULT, |
| pub SetMaxFolderCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulmaxfoldercount: u32) -> ::windows::core::HRESULT, |
| pub ResourcePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppolicy: *mut ResourcePolicy) -> ::windows::core::HRESULT, |
| pub SetResourcePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, policy: ResourcePolicy) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub FolderActions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| FolderActions: usize, |
| pub ReportSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportschema: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetReportSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportschema: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub ReportFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetReportFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub RuleTargetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetRuleTargetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub EventsFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetEventsFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub Rules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetRules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Run: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, steps: DataManagerSteps, bstrfolder: ::std::mem::MaybeUninit<::windows::core::BSTR>, errors: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Run: usize, |
| pub Extract: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cabfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>, destinationpath: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IFolderAction(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IFolderAction { |
| pub unsafe fn Age(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).Age)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetAge(&self, ulage: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetAge)(::windows::core::Interface::as_raw(self), ulage).ok() |
| } |
| pub unsafe fn Size(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).Size)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSize(&self, ulage: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSize)(::windows::core::Interface::as_raw(self), ulage).ok() |
| } |
| pub unsafe fn Actions(&self) -> ::windows::core::Result<FolderActionSteps> { |
| let mut result__ = ::windows::core::zeroed::<FolderActionSteps>(); |
| (::windows::core::Interface::vtable(self).Actions)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetActions(&self, steps: FolderActionSteps) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetActions)(::windows::core::Interface::as_raw(self), steps).ok() |
| } |
| pub unsafe fn SendCabTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).SendCabTo)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSendCabTo<P0>(&self, bstrdestination: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSendCabTo)(::windows::core::Interface::as_raw(self), bstrdestination.into_param().abi()).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IFolderAction, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IFolderAction { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IFolderAction {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IFolderAction { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IFolderAction").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IFolderAction { |
| type Vtable = IFolderAction_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IFolderAction { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IFolderAction { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837543_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IFolderAction_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Age: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulage: *mut u32) -> ::windows::core::HRESULT, |
| pub SetAge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulage: u32) -> ::windows::core::HRESULT, |
| pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulage: *mut u32) -> ::windows::core::HRESULT, |
| pub SetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulage: u32) -> ::windows::core::HRESULT, |
| pub Actions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, steps: *mut FolderActionSteps) -> ::windows::core::HRESULT, |
| pub SetActions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, steps: FolderActionSteps) -> ::windows::core::HRESULT, |
| pub SendCabTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdestination: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetSendCabTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IFolderActionCollection(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IFolderActionCollection { |
| pub unsafe fn Count(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn get_Item(&self, index: super::Com::VARIANT) -> ::windows::core::Result<IFolderAction> { |
| let mut result__ = ::windows::core::zeroed::<IFolderAction>(); |
| (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::IUnknown>(); |
| (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Add<P0>(&self, action: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IFolderAction>, |
| { |
| (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), action.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Remove(&self, index: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index)).ok() |
| } |
| pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn AddRange<P0>(&self, actions: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IFolderActionCollection>, |
| { |
| (::windows::core::Interface::vtable(self).AddRange)(::windows::core::Interface::as_raw(self), actions.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn CreateFolderAction(&self) -> ::windows::core::Result<IFolderAction> { |
| let mut result__ = ::windows::core::zeroed::<IFolderAction>(); |
| (::windows::core::Interface::vtable(self).CreateFolderAction)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IFolderActionCollection, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IFolderActionCollection { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IFolderActionCollection {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IFolderActionCollection { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IFolderActionCollection").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IFolderActionCollection { |
| type Vtable = IFolderActionCollection_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IFolderActionCollection { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IFolderActionCollection { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837544_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IFolderActionCollection_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut u32) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT, action: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| get_Item: usize, |
| pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#enum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Add: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Remove: usize, |
| pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actions: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| AddRange: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub CreateFolderAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderaction: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| CreateFolderAction: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| pub struct ILogFileItem(::windows::core::IUnknown); |
| impl ILogFileItem { |
| pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| } |
| ::windows::imp::interface_hierarchy!(ILogFileItem, ::windows::core::IUnknown); |
| impl ::core::cmp::PartialEq for ILogFileItem { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ILogFileItem {} |
| impl ::core::fmt::Debug for ILogFileItem { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ILogFileItem").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::Interface for ILogFileItem { |
| type Vtable = ILogFileItem_Vtbl; |
| } |
| impl ::core::clone::Clone for ILogFileItem { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for ILogFileItem { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd6b518dd_05c7_418a_89e6_4f9ce8c6841e); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ILogFileItem_Vtbl { |
| pub base__: ::windows::core::IUnknown_Vtbl, |
| pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct ILogFiles(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ILogFiles { |
| pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::IUnknown>(); |
| (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn get_Item(&self, index: super::Com::VARIANT) -> ::windows::core::Result<DILogFileItem> { |
| let mut result__ = ::windows::core::zeroed::<DILogFileItem>(); |
| (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Add<P0>(&self, pathname: P0) -> ::windows::core::Result<DILogFileItem> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<DILogFileItem>(); |
| (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), pathname.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Remove(&self, index: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index)).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(ILogFiles, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for ILogFiles { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for ILogFiles {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for ILogFiles { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ILogFiles").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for ILogFiles { |
| type Vtable = ILogFiles_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for ILogFiles { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for ILogFiles { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a2a97e6_6851_41ea_87ad_2a8225335865); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ILogFiles_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plong: *mut i32) -> ::windows::core::HRESULT, |
| pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| get_Item: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pathname: ::std::mem::MaybeUninit<::windows::core::BSTR>, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Add: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Remove: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IPerformanceCounterDataCollector(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IPerformanceCounterDataCollector { |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn DataCollectorSet(&self) -> ::windows::core::Result<IDataCollectorSet> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollectorSet>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorSet)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetDataCollectorSet<P0>(&self, group: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollectorSet>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetDataCollectorSet)(::windows::core::Interface::as_raw(self), group.into_param().abi()).ok() |
| } |
| pub unsafe fn DataCollectorType(&self) -> ::windows::core::Result<DataCollectorType> { |
| let mut result__ = ::windows::core::zeroed::<DataCollectorType>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result<AutoPathFormat> { |
| let mut result__ = ::windows::core::zeroed::<AutoPathFormat>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormat)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() |
| } |
| pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormatPattern<P0>(&self, pattern: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into_param().abi()).ok() |
| } |
| pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLatestOutputLocation<P0>(&self, path: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogAppend(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogAppend)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogAppend<P0>(&self, append: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogAppend)(::windows::core::Interface::as_raw(self), append.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogCircular(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogCircular)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogCircular<P0>(&self, circular: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogCircular)(::windows::core::Interface::as_raw(self), circular.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogOverwrite(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogOverwrite)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogOverwrite<P0>(&self, overwrite: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite.into_param().abi()).ok() |
| } |
| pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Index(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.Index)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() |
| } |
| pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetXml<P0>(&self, xml: P0) -> ::windows::core::Result<IValueMap> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn CreateOutputLocation<P0>(&self, latest: P0) -> ::windows::core::Result<::windows::core::BSTR> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn DataSourceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).DataSourceName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDataSourceName<P0>(&self, dsn: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetDataSourceName)(::windows::core::Interface::as_raw(self), dsn.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn PerformanceCounters(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).PerformanceCounters)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetPerformanceCounters(&self, counters: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetPerformanceCounters)(::windows::core::Interface::as_raw(self), counters).ok() |
| } |
| pub unsafe fn LogFileFormat(&self) -> ::windows::core::Result<FileFormat> { |
| let mut result__ = ::windows::core::zeroed::<FileFormat>(); |
| (::windows::core::Interface::vtable(self).LogFileFormat)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogFileFormat(&self, format: FileFormat) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetLogFileFormat)(::windows::core::Interface::as_raw(self), format).ok() |
| } |
| pub unsafe fn SampleInterval(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).SampleInterval)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSampleInterval(&self, interval: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSampleInterval)(::windows::core::Interface::as_raw(self), interval).ok() |
| } |
| pub unsafe fn SegmentMaxRecords(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).SegmentMaxRecords)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSegmentMaxRecords(&self, records: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSegmentMaxRecords)(::windows::core::Interface::as_raw(self), records).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IPerformanceCounterDataCollector, ::windows::core::IUnknown, super::Com::IDispatch, IDataCollector); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IPerformanceCounterDataCollector { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IPerformanceCounterDataCollector {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IPerformanceCounterDataCollector { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IPerformanceCounterDataCollector").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IPerformanceCounterDataCollector { |
| type Vtable = IPerformanceCounterDataCollector_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IPerformanceCounterDataCollector { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IPerformanceCounterDataCollector { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837506_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IPerformanceCounterDataCollector_Vtbl { |
| pub base__: IDataCollector_Vtbl, |
| pub DataSourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dsn: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetDataSourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dsn: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub PerformanceCounters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, counters: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| PerformanceCounters: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetPerformanceCounters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, counters: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetPerformanceCounters: usize, |
| pub LogFileFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: *mut FileFormat) -> ::windows::core::HRESULT, |
| pub SetLogFileFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: FileFormat) -> ::windows::core::HRESULT, |
| pub SampleInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interval: *mut u32) -> ::windows::core::HRESULT, |
| pub SetSampleInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interval: u32) -> ::windows::core::HRESULT, |
| pub SegmentMaxRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, records: *mut u32) -> ::windows::core::HRESULT, |
| pub SetSegmentMaxRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, records: u32) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct ISchedule(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ISchedule { |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn StartDate(&self) -> ::windows::core::Result<super::Com::VARIANT> { |
| let mut result__ = ::windows::core::zeroed::<super::Com::VARIANT>(); |
| (::windows::core::Interface::vtable(self).StartDate)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn SetStartDate(&self, start: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetStartDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(start)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn EndDate(&self) -> ::windows::core::Result<super::Com::VARIANT> { |
| let mut result__ = ::windows::core::zeroed::<super::Com::VARIANT>(); |
| (::windows::core::Interface::vtable(self).EndDate)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn SetEndDate(&self, end: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetEndDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(end)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn StartTime(&self) -> ::windows::core::Result<super::Com::VARIANT> { |
| let mut result__ = ::windows::core::zeroed::<super::Com::VARIANT>(); |
| (::windows::core::Interface::vtable(self).StartTime)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn SetStartTime(&self, start: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetStartTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(start)).ok() |
| } |
| pub unsafe fn Days(&self) -> ::windows::core::Result<WeekDays> { |
| let mut result__ = ::windows::core::zeroed::<WeekDays>(); |
| (::windows::core::Interface::vtable(self).Days)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDays(&self, days: WeekDays) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDays)(::windows::core::Interface::as_raw(self), days).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(ISchedule, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for ISchedule { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for ISchedule {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for ISchedule { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ISchedule").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for ISchedule { |
| type Vtable = ISchedule_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for ISchedule { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for ISchedule { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0383753a_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ISchedule_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub StartDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| StartDate: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub SetStartDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| SetStartDate: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub EndDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, end: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| EndDate: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub SetEndDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, end: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| SetEndDate: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| StartTime: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| SetStartTime: usize, |
| pub Days: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, days: *mut WeekDays) -> ::windows::core::HRESULT, |
| pub SetDays: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, days: WeekDays) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IScheduleCollection(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IScheduleCollection { |
| pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn get_Item(&self, index: super::Com::VARIANT) -> ::windows::core::Result<ISchedule> { |
| let mut result__ = ::windows::core::zeroed::<ISchedule>(); |
| (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::IUnknown>(); |
| (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Add<P0>(&self, pschedule: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<ISchedule>, |
| { |
| (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), pschedule.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Remove(&self, vschedule: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(vschedule)).ok() |
| } |
| pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn AddRange<P0>(&self, pschedules: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IScheduleCollection>, |
| { |
| (::windows::core::Interface::vtable(self).AddRange)(::windows::core::Interface::as_raw(self), pschedules.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn CreateSchedule(&self) -> ::windows::core::Result<ISchedule> { |
| let mut result__ = ::windows::core::zeroed::<ISchedule>(); |
| (::windows::core::Interface::vtable(self).CreateSchedule)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IScheduleCollection, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IScheduleCollection { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IScheduleCollection {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IScheduleCollection { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IScheduleCollection").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IScheduleCollection { |
| type Vtable = IScheduleCollection_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IScheduleCollection { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IScheduleCollection { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0383753d_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IScheduleCollection_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT, ppschedule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| get_Item: usize, |
| pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ienum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pschedule: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Add: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vschedule: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Remove: usize, |
| pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pschedules: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| AddRange: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub CreateSchedule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, schedule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| CreateSchedule: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| pub struct ISystemMonitor(::windows::core::IUnknown); |
| impl ISystemMonitor { |
| pub unsafe fn Appearance(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Appearance)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetAppearance(&self, iappearance: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetAppearance)(::windows::core::Interface::as_raw(self), iappearance).ok() |
| } |
| pub unsafe fn BackColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).BackColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBackColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetBackColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn BorderStyle(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).BorderStyle)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBorderStyle(&self, iborderstyle: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetBorderStyle)(::windows::core::Interface::as_raw(self), iborderstyle).ok() |
| } |
| pub unsafe fn ForeColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).ForeColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetForeColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetForeColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Font(&self) -> ::windows::core::Result<super::Ole::IFontDisp> { |
| let mut result__ = ::windows::core::zeroed::<super::Ole::IFontDisp>(); |
| (::windows::core::Interface::vtable(self).Font)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn putref_Font<P0>(&self, pfont: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::Ole::IFontDisp>, |
| { |
| (::windows::core::Interface::vtable(self).putref_Font)(::windows::core::Interface::as_raw(self), pfont.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Counters(&self) -> ::windows::core::Result<ICounters> { |
| let mut result__ = ::windows::core::zeroed::<ICounters>(); |
| (::windows::core::Interface::vtable(self).Counters)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowVerticalGrid<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowVerticalGrid)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowVerticalGrid(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowVerticalGrid)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowHorizontalGrid<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowHorizontalGrid)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowHorizontalGrid(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowHorizontalGrid)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowLegend<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowLegend)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowLegend(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowLegend)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowScaleLabels<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowScaleLabels)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowScaleLabels(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowScaleLabels)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowValueBar<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowValueBar)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowValueBar(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowValueBar)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMaximumScale(&self, ivalue: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetMaximumScale)(::windows::core::Interface::as_raw(self), ivalue).ok() |
| } |
| pub unsafe fn MaximumScale(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).MaximumScale)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMinimumScale(&self, ivalue: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetMinimumScale)(::windows::core::Interface::as_raw(self), ivalue).ok() |
| } |
| pub unsafe fn MinimumScale(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).MinimumScale)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetUpdateInterval(&self, fvalue: f32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetUpdateInterval)(::windows::core::Interface::as_raw(self), fvalue).ok() |
| } |
| pub unsafe fn UpdateInterval(&self) -> ::windows::core::Result<f32> { |
| let mut result__ = ::windows::core::zeroed::<f32>(); |
| (::windows::core::Interface::vtable(self).UpdateInterval)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDisplayType(&self, edisplaytype: DisplayTypeConstants) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDisplayType)(::windows::core::Interface::as_raw(self), edisplaytype).ok() |
| } |
| pub unsafe fn DisplayType(&self) -> ::windows::core::Result<DisplayTypeConstants> { |
| let mut result__ = ::windows::core::zeroed::<DisplayTypeConstants>(); |
| (::windows::core::Interface::vtable(self).DisplayType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetManualUpdate<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetManualUpdate)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ManualUpdate(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ManualUpdate)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetGraphTitle<P0>(&self, bstitle: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetGraphTitle)(::windows::core::Interface::as_raw(self), bstitle.into_param().abi()).ok() |
| } |
| pub unsafe fn GraphTitle(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).GraphTitle)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetYAxisLabel<P0>(&self, bstitle: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetYAxisLabel)(::windows::core::Interface::as_raw(self), bstitle.into_param().abi()).ok() |
| } |
| pub unsafe fn YAxisLabel(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).YAxisLabel)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn CollectSample(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).CollectSample)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn UpdateGraph(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).UpdateGraph)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn BrowseCounters(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).BrowseCounters)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn DisplayProperties(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).DisplayProperties)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn Counter(&self, iindex: i32) -> ::windows::core::Result<ICounterItem> { |
| let mut result__ = ::windows::core::zeroed::<ICounterItem>(); |
| (::windows::core::Interface::vtable(self).Counter)(::windows::core::Interface::as_raw(self), iindex, &mut result__).from_abi(result__) |
| } |
| pub unsafe fn AddCounter<P0>(&self, bspath: P0) -> ::windows::core::Result<ICounterItem> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<ICounterItem>(); |
| (::windows::core::Interface::vtable(self).AddCounter)(::windows::core::Interface::as_raw(self), bspath.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn DeleteCounter<P0>(&self, pctr: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<ICounterItem>, |
| { |
| (::windows::core::Interface::vtable(self).DeleteCounter)(::windows::core::Interface::as_raw(self), pctr.into_param().abi()).ok() |
| } |
| pub unsafe fn BackColorCtl(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).BackColorCtl)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBackColorCtl(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetBackColorCtl)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn SetLogFileName<P0>(&self, bsfilename: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetLogFileName)(::windows::core::Interface::as_raw(self), bsfilename.into_param().abi()).ok() |
| } |
| pub unsafe fn LogFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).LogFileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogViewStart(&self, starttime: f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetLogViewStart)(::windows::core::Interface::as_raw(self), starttime).ok() |
| } |
| pub unsafe fn LogViewStart(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).LogViewStart)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogViewStop(&self, stoptime: f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetLogViewStop)(::windows::core::Interface::as_raw(self), stoptime).ok() |
| } |
| pub unsafe fn LogViewStop(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).LogViewStop)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn GridColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).GridColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetGridColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetGridColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn TimeBarColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).TimeBarColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTimeBarColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetTimeBarColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Highlight(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).Highlight)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetHighlight<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetHighlight)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowToolbar(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowToolbar)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowToolbar<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowToolbar)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| pub unsafe fn Paste(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Paste)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn Copy(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Copy)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetReadOnly<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetReadOnly)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ReadOnly(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ReadOnly)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetReportValueType(&self, ereportvaluetype: ReportValueTypeConstants) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetReportValueType)(::windows::core::Interface::as_raw(self), ereportvaluetype).ok() |
| } |
| pub unsafe fn ReportValueType(&self) -> ::windows::core::Result<ReportValueTypeConstants> { |
| let mut result__ = ::windows::core::zeroed::<ReportValueTypeConstants>(); |
| (::windows::core::Interface::vtable(self).ReportValueType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetMonitorDuplicateInstances<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetMonitorDuplicateInstances)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn MonitorDuplicateInstances(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).MonitorDuplicateInstances)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDisplayFilter(&self, ivalue: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDisplayFilter)(::windows::core::Interface::as_raw(self), ivalue).ok() |
| } |
| pub unsafe fn DisplayFilter(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).DisplayFilter)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn LogFiles(&self) -> ::windows::core::Result<ILogFiles> { |
| let mut result__ = ::windows::core::zeroed::<ILogFiles>(); |
| (::windows::core::Interface::vtable(self).LogFiles)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDataSourceType(&self, edatasourcetype: DataSourceTypeConstants) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDataSourceType)(::windows::core::Interface::as_raw(self), edatasourcetype).ok() |
| } |
| pub unsafe fn DataSourceType(&self) -> ::windows::core::Result<DataSourceTypeConstants> { |
| let mut result__ = ::windows::core::zeroed::<DataSourceTypeConstants>(); |
| (::windows::core::Interface::vtable(self).DataSourceType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSqlDsnName<P0>(&self, bssqldsnname: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSqlDsnName)(::windows::core::Interface::as_raw(self), bssqldsnname.into_param().abi()).ok() |
| } |
| pub unsafe fn SqlDsnName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).SqlDsnName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSqlLogSetName<P0>(&self, bssqllogsetname: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSqlLogSetName)(::windows::core::Interface::as_raw(self), bssqllogsetname.into_param().abi()).ok() |
| } |
| pub unsafe fn SqlLogSetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).SqlLogSetName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| } |
| ::windows::imp::interface_hierarchy!(ISystemMonitor, ::windows::core::IUnknown); |
| impl ::core::cmp::PartialEq for ISystemMonitor { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ISystemMonitor {} |
| impl ::core::fmt::Debug for ISystemMonitor { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ISystemMonitor").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::Interface for ISystemMonitor { |
| type Vtable = ISystemMonitor_Vtbl; |
| } |
| impl ::core::clone::Clone for ISystemMonitor { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for ISystemMonitor { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x194eb241_c32c_11cf_9398_00aa00a3ddea); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ISystemMonitor_Vtbl { |
| pub base__: ::windows::core::IUnknown_Vtbl, |
| pub Appearance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iappearance: *mut i32) -> ::windows::core::HRESULT, |
| pub SetAppearance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iappearance: i32) -> ::windows::core::HRESULT, |
| pub BackColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetBackColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| pub BorderStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iborderstyle: *mut i32) -> ::windows::core::HRESULT, |
| pub SetBorderStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iborderstyle: i32) -> ::windows::core::HRESULT, |
| pub ForeColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetForeColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Font: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfont: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Font: usize, |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub putref_Font: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfont: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| putref_Font: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Counters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppicounters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Counters: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowVerticalGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowVerticalGrid: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowVerticalGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowVerticalGrid: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowHorizontalGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowHorizontalGrid: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowHorizontalGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowHorizontalGrid: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowLegend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowLegend: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowLegend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowLegend: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowScaleLabels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowScaleLabels: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowScaleLabels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowScaleLabels: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowValueBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowValueBar: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowValueBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowValueBar: usize, |
| pub SetMaximumScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ivalue: i32) -> ::windows::core::HRESULT, |
| pub MaximumScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub SetMinimumScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ivalue: i32) -> ::windows::core::HRESULT, |
| pub MinimumScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub SetUpdateInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fvalue: f32) -> ::windows::core::HRESULT, |
| pub UpdateInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfvalue: *mut f32) -> ::windows::core::HRESULT, |
| pub SetDisplayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edisplaytype: DisplayTypeConstants) -> ::windows::core::HRESULT, |
| pub DisplayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedisplaytype: *mut DisplayTypeConstants) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetManualUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetManualUpdate: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ManualUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ManualUpdate: usize, |
| pub SetGraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub GraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetYAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub YAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub CollectSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub UpdateGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub BrowseCounters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub DisplayProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub Counter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: i32, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub AddCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bspath: ::std::mem::MaybeUninit<::windows::core::BSTR>, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub DeleteCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctr: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub BackColorCtl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetBackColorCtl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| pub SetLogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub LogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetLogViewStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64) -> ::windows::core::HRESULT, |
| pub LogViewStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: *mut f64) -> ::windows::core::HRESULT, |
| pub SetLogViewStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stoptime: f64) -> ::windows::core::HRESULT, |
| pub LogViewStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stoptime: *mut f64) -> ::windows::core::HRESULT, |
| pub GridColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetGridColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| pub TimeBarColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetTimeBarColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Highlight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Highlight: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetHighlight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetHighlight: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowToolbar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowToolbar: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowToolbar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowToolbar: usize, |
| pub Paste: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetReadOnly: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ReadOnly: usize, |
| pub SetReportValueType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ereportvaluetype: ReportValueTypeConstants) -> ::windows::core::HRESULT, |
| pub ReportValueType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pereportvaluetype: *mut ReportValueTypeConstants) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetMonitorDuplicateInstances: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetMonitorDuplicateInstances: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub MonitorDuplicateInstances: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| MonitorDuplicateInstances: usize, |
| pub SetDisplayFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ivalue: i32) -> ::windows::core::HRESULT, |
| pub DisplayFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub LogFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppilogfiles: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| LogFiles: usize, |
| pub SetDataSourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edatasourcetype: DataSourceTypeConstants) -> ::windows::core::HRESULT, |
| pub DataSourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedatasourcetype: *mut DataSourceTypeConstants) -> ::windows::core::HRESULT, |
| pub SetSqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetSqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| pub struct ISystemMonitor2(::windows::core::IUnknown); |
| impl ISystemMonitor2 { |
| pub unsafe fn Appearance(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.Appearance)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetAppearance(&self, iappearance: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetAppearance)(::windows::core::Interface::as_raw(self), iappearance).ok() |
| } |
| pub unsafe fn BackColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).base__.BackColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBackColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetBackColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn BorderStyle(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.BorderStyle)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBorderStyle(&self, iborderstyle: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetBorderStyle)(::windows::core::Interface::as_raw(self), iborderstyle).ok() |
| } |
| pub unsafe fn ForeColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).base__.ForeColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetForeColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetForeColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Font(&self) -> ::windows::core::Result<super::Ole::IFontDisp> { |
| let mut result__ = ::windows::core::zeroed::<super::Ole::IFontDisp>(); |
| (::windows::core::Interface::vtable(self).base__.Font)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn putref_Font<P0>(&self, pfont: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::Ole::IFontDisp>, |
| { |
| (::windows::core::Interface::vtable(self).base__.putref_Font)(::windows::core::Interface::as_raw(self), pfont.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Counters(&self) -> ::windows::core::Result<ICounters> { |
| let mut result__ = ::windows::core::zeroed::<ICounters>(); |
| (::windows::core::Interface::vtable(self).base__.Counters)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowVerticalGrid<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetShowVerticalGrid)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowVerticalGrid(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.ShowVerticalGrid)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowHorizontalGrid<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetShowHorizontalGrid)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowHorizontalGrid(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.ShowHorizontalGrid)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowLegend<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetShowLegend)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowLegend(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.ShowLegend)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowScaleLabels<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetShowScaleLabels)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowScaleLabels(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.ShowScaleLabels)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowValueBar<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetShowValueBar)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowValueBar(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.ShowValueBar)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMaximumScale(&self, ivalue: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetMaximumScale)(::windows::core::Interface::as_raw(self), ivalue).ok() |
| } |
| pub unsafe fn MaximumScale(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.MaximumScale)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMinimumScale(&self, ivalue: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetMinimumScale)(::windows::core::Interface::as_raw(self), ivalue).ok() |
| } |
| pub unsafe fn MinimumScale(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.MinimumScale)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetUpdateInterval(&self, fvalue: f32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetUpdateInterval)(::windows::core::Interface::as_raw(self), fvalue).ok() |
| } |
| pub unsafe fn UpdateInterval(&self) -> ::windows::core::Result<f32> { |
| let mut result__ = ::windows::core::zeroed::<f32>(); |
| (::windows::core::Interface::vtable(self).base__.UpdateInterval)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDisplayType(&self, edisplaytype: DisplayTypeConstants) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetDisplayType)(::windows::core::Interface::as_raw(self), edisplaytype).ok() |
| } |
| pub unsafe fn DisplayType(&self) -> ::windows::core::Result<DisplayTypeConstants> { |
| let mut result__ = ::windows::core::zeroed::<DisplayTypeConstants>(); |
| (::windows::core::Interface::vtable(self).base__.DisplayType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetManualUpdate<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetManualUpdate)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ManualUpdate(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.ManualUpdate)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetGraphTitle<P0>(&self, bstitle: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetGraphTitle)(::windows::core::Interface::as_raw(self), bstitle.into_param().abi()).ok() |
| } |
| pub unsafe fn GraphTitle(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.GraphTitle)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetYAxisLabel<P0>(&self, bstitle: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetYAxisLabel)(::windows::core::Interface::as_raw(self), bstitle.into_param().abi()).ok() |
| } |
| pub unsafe fn YAxisLabel(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.YAxisLabel)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn CollectSample(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.CollectSample)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn UpdateGraph(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.UpdateGraph)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn BrowseCounters(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.BrowseCounters)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn DisplayProperties(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.DisplayProperties)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn Counter(&self, iindex: i32) -> ::windows::core::Result<ICounterItem> { |
| let mut result__ = ::windows::core::zeroed::<ICounterItem>(); |
| (::windows::core::Interface::vtable(self).base__.Counter)(::windows::core::Interface::as_raw(self), iindex, &mut result__).from_abi(result__) |
| } |
| pub unsafe fn AddCounter<P0>(&self, bspath: P0) -> ::windows::core::Result<ICounterItem> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<ICounterItem>(); |
| (::windows::core::Interface::vtable(self).base__.AddCounter)(::windows::core::Interface::as_raw(self), bspath.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn DeleteCounter<P0>(&self, pctr: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<ICounterItem>, |
| { |
| (::windows::core::Interface::vtable(self).base__.DeleteCounter)(::windows::core::Interface::as_raw(self), pctr.into_param().abi()).ok() |
| } |
| pub unsafe fn BackColorCtl(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).base__.BackColorCtl)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBackColorCtl(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetBackColorCtl)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn SetLogFileName<P0>(&self, bsfilename: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogFileName)(::windows::core::Interface::as_raw(self), bsfilename.into_param().abi()).ok() |
| } |
| pub unsafe fn LogFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.LogFileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogViewStart(&self, starttime: f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetLogViewStart)(::windows::core::Interface::as_raw(self), starttime).ok() |
| } |
| pub unsafe fn LogViewStart(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).base__.LogViewStart)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogViewStop(&self, stoptime: f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetLogViewStop)(::windows::core::Interface::as_raw(self), stoptime).ok() |
| } |
| pub unsafe fn LogViewStop(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).base__.LogViewStop)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn GridColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).base__.GridColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetGridColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetGridColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn TimeBarColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).base__.TimeBarColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTimeBarColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetTimeBarColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Highlight(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.Highlight)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetHighlight<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetHighlight)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowToolbar(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.ShowToolbar)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowToolbar<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetShowToolbar)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| pub unsafe fn Paste(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.Paste)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn Copy(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.Copy)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.Reset)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetReadOnly<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetReadOnly)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ReadOnly(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.ReadOnly)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetReportValueType(&self, ereportvaluetype: ReportValueTypeConstants) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetReportValueType)(::windows::core::Interface::as_raw(self), ereportvaluetype).ok() |
| } |
| pub unsafe fn ReportValueType(&self) -> ::windows::core::Result<ReportValueTypeConstants> { |
| let mut result__ = ::windows::core::zeroed::<ReportValueTypeConstants>(); |
| (::windows::core::Interface::vtable(self).base__.ReportValueType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetMonitorDuplicateInstances<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetMonitorDuplicateInstances)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn MonitorDuplicateInstances(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.MonitorDuplicateInstances)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDisplayFilter(&self, ivalue: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetDisplayFilter)(::windows::core::Interface::as_raw(self), ivalue).ok() |
| } |
| pub unsafe fn DisplayFilter(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.DisplayFilter)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn LogFiles(&self) -> ::windows::core::Result<ILogFiles> { |
| let mut result__ = ::windows::core::zeroed::<ILogFiles>(); |
| (::windows::core::Interface::vtable(self).base__.LogFiles)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDataSourceType(&self, edatasourcetype: DataSourceTypeConstants) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetDataSourceType)(::windows::core::Interface::as_raw(self), edatasourcetype).ok() |
| } |
| pub unsafe fn DataSourceType(&self) -> ::windows::core::Result<DataSourceTypeConstants> { |
| let mut result__ = ::windows::core::zeroed::<DataSourceTypeConstants>(); |
| (::windows::core::Interface::vtable(self).base__.DataSourceType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSqlDsnName<P0>(&self, bssqldsnname: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetSqlDsnName)(::windows::core::Interface::as_raw(self), bssqldsnname.into_param().abi()).ok() |
| } |
| pub unsafe fn SqlDsnName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.SqlDsnName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSqlLogSetName<P0>(&self, bssqllogsetname: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetSqlLogSetName)(::windows::core::Interface::as_raw(self), bssqllogsetname.into_param().abi()).ok() |
| } |
| pub unsafe fn SqlLogSetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.SqlLogSetName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetEnableDigitGrouping<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetEnableDigitGrouping)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn EnableDigitGrouping(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).EnableDigitGrouping)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetEnableToolTips<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetEnableToolTips)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn EnableToolTips(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).EnableToolTips)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowTimeAxisLabels<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowTimeAxisLabels)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowTimeAxisLabels(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowTimeAxisLabels)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetChartScroll<P0>(&self, bscroll: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetChartScroll)(::windows::core::Interface::as_raw(self), bscroll.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ChartScroll(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ChartScroll)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDataPointCount(&self, inewcount: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDataPointCount)(::windows::core::Interface::as_raw(self), inewcount).ok() |
| } |
| pub unsafe fn DataPointCount(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).DataPointCount)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ScaleToFit<P0>(&self, bselectedcountersonly: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).ScaleToFit)(::windows::core::Interface::as_raw(self), bselectedcountersonly.into_param().abi()).ok() |
| } |
| pub unsafe fn SaveAs<P0>(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SaveAs)(::windows::core::Interface::as_raw(self), bstrfilename.into_param().abi(), esysmonfiletype).ok() |
| } |
| pub unsafe fn Relog<P0>(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).Relog)(::windows::core::Interface::as_raw(self), bstrfilename.into_param().abi(), esysmonfiletype, ifilter).ok() |
| } |
| pub unsafe fn ClearData(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).ClearData)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn LogSourceStartTime(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).LogSourceStartTime)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn LogSourceStopTime(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).LogSourceStopTime)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogViewRange(&self, starttime: f64, stoptime: f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetLogViewRange)(::windows::core::Interface::as_raw(self), starttime, stoptime).ok() |
| } |
| pub unsafe fn GetLogViewRange(&self, starttime: *mut f64, stoptime: *mut f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).GetLogViewRange)(::windows::core::Interface::as_raw(self), starttime, stoptime).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn BatchingLock<P0>(&self, flock: P0, ebatchreason: SysmonBatchReason) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).BatchingLock)(::windows::core::Interface::as_raw(self), flock.into_param().abi(), ebatchreason).ok() |
| } |
| pub unsafe fn LoadSettings<P0>(&self, bstrsettingfilename: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).LoadSettings)(::windows::core::Interface::as_raw(self), bstrsettingfilename.into_param().abi()).ok() |
| } |
| } |
| ::windows::imp::interface_hierarchy!(ISystemMonitor2, ::windows::core::IUnknown, ISystemMonitor); |
| impl ::core::cmp::PartialEq for ISystemMonitor2 { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ISystemMonitor2 {} |
| impl ::core::fmt::Debug for ISystemMonitor2 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ISystemMonitor2").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::Interface for ISystemMonitor2 { |
| type Vtable = ISystemMonitor2_Vtbl; |
| } |
| impl ::core::clone::Clone for ISystemMonitor2 { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for ISystemMonitor2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x08e3206a_5fd2_4fde_a8a5_8cb3b63d2677); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ISystemMonitor2_Vtbl { |
| pub base__: ISystemMonitor_Vtbl, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetEnableDigitGrouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetEnableDigitGrouping: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub EnableDigitGrouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| EnableDigitGrouping: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetEnableToolTips: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetEnableToolTips: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub EnableToolTips: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| EnableToolTips: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowTimeAxisLabels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowTimeAxisLabels: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowTimeAxisLabels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowTimeAxisLabels: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetChartScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bscroll: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetChartScroll: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ChartScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbscroll: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ChartScroll: usize, |
| pub SetDataPointCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inewcount: i32) -> ::windows::core::HRESULT, |
| pub DataPointCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidatapointcount: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ScaleToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bselectedcountersonly: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ScaleToFit: usize, |
| pub SaveAs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT, |
| pub Relog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT, |
| pub ClearData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub LogSourceStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, |
| pub LogSourceStopTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, |
| pub SetLogViewRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64, stoptime: f64) -> ::windows::core::HRESULT, |
| pub GetLogViewRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: *mut f64, stoptime: *mut f64) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub BatchingLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flock: super::super::Foundation::VARIANT_BOOL, ebatchreason: SysmonBatchReason) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| BatchingLock: usize, |
| pub LoadSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| pub struct ISystemMonitorEvents(::windows::core::IUnknown); |
| impl ISystemMonitorEvents { |
| pub unsafe fn OnCounterSelected(&self, index: i32) { |
| (::windows::core::Interface::vtable(self).OnCounterSelected)(::windows::core::Interface::as_raw(self), index) |
| } |
| pub unsafe fn OnCounterAdded(&self, index: i32) { |
| (::windows::core::Interface::vtable(self).OnCounterAdded)(::windows::core::Interface::as_raw(self), index) |
| } |
| pub unsafe fn OnCounterDeleted(&self, index: i32) { |
| (::windows::core::Interface::vtable(self).OnCounterDeleted)(::windows::core::Interface::as_raw(self), index) |
| } |
| pub unsafe fn OnSampleCollected(&self) { |
| (::windows::core::Interface::vtable(self).OnSampleCollected)(::windows::core::Interface::as_raw(self)) |
| } |
| pub unsafe fn OnDblClick(&self, index: i32) { |
| (::windows::core::Interface::vtable(self).OnDblClick)(::windows::core::Interface::as_raw(self), index) |
| } |
| } |
| ::windows::imp::interface_hierarchy!(ISystemMonitorEvents, ::windows::core::IUnknown); |
| impl ::core::cmp::PartialEq for ISystemMonitorEvents { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ISystemMonitorEvents {} |
| impl ::core::fmt::Debug for ISystemMonitorEvents { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ISystemMonitorEvents").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::Interface for ISystemMonitorEvents { |
| type Vtable = ISystemMonitorEvents_Vtbl; |
| } |
| impl ::core::clone::Clone for ISystemMonitorEvents { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for ISystemMonitorEvents { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xee660ea0_4abd_11cf_943a_008029004347); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ISystemMonitorEvents_Vtbl { |
| pub base__: ::windows::core::IUnknown_Vtbl, |
| pub OnCounterSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32), |
| pub OnCounterAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32), |
| pub OnCounterDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32), |
| pub OnSampleCollected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), |
| pub OnDblClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32), |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct ITraceDataCollector(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ITraceDataCollector { |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn DataCollectorSet(&self) -> ::windows::core::Result<IDataCollectorSet> { |
| let mut result__ = ::windows::core::zeroed::<IDataCollectorSet>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorSet)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetDataCollectorSet<P0>(&self, group: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IDataCollectorSet>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetDataCollectorSet)(::windows::core::Interface::as_raw(self), group.into_param().abi()).ok() |
| } |
| pub unsafe fn DataCollectorType(&self) -> ::windows::core::Result<DataCollectorType> { |
| let mut result__ = ::windows::core::zeroed::<DataCollectorType>(); |
| (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result<AutoPathFormat> { |
| let mut result__ = ::windows::core::zeroed::<AutoPathFormat>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormat)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() |
| } |
| pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFileNameFormatPattern<P0>(&self, pattern: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into_param().abi()).ok() |
| } |
| pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLatestOutputLocation<P0>(&self, path: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogAppend(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogAppend)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogAppend<P0>(&self, append: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogAppend)(::windows::core::Interface::as_raw(self), append.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogCircular(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogCircular)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogCircular<P0>(&self, circular: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogCircular)(::windows::core::Interface::as_raw(self), circular.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn LogOverwrite(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).base__.LogOverwrite)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetLogOverwrite<P0>(&self, overwrite: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite.into_param().abi()).ok() |
| } |
| pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Index(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).base__.Index)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() |
| } |
| pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetXml<P0>(&self, xml: P0) -> ::windows::core::Result<IValueMap> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn CreateOutputLocation<P0>(&self, latest: P0) -> ::windows::core::Result<::windows::core::BSTR> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn BufferSize(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).BufferSize)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBufferSize(&self, size: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetBufferSize)(::windows::core::Interface::as_raw(self), size).ok() |
| } |
| pub unsafe fn BuffersLost(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).BuffersLost)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBuffersLost(&self, buffers: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetBuffersLost)(::windows::core::Interface::as_raw(self), buffers).ok() |
| } |
| pub unsafe fn BuffersWritten(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).BuffersWritten)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBuffersWritten(&self, buffers: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetBuffersWritten)(::windows::core::Interface::as_raw(self), buffers).ok() |
| } |
| pub unsafe fn ClockType(&self) -> ::windows::core::Result<ClockType> { |
| let mut result__ = ::windows::core::zeroed::<ClockType>(); |
| (::windows::core::Interface::vtable(self).ClockType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetClockType(&self, clock: ClockType) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetClockType)(::windows::core::Interface::as_raw(self), clock).ok() |
| } |
| pub unsafe fn EventsLost(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).EventsLost)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetEventsLost(&self, events: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetEventsLost)(::windows::core::Interface::as_raw(self), events).ok() |
| } |
| pub unsafe fn ExtendedModes(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).ExtendedModes)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetExtendedModes(&self, mode: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetExtendedModes)(::windows::core::Interface::as_raw(self), mode).ok() |
| } |
| pub unsafe fn FlushTimer(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).FlushTimer)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFlushTimer(&self, seconds: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetFlushTimer)(::windows::core::Interface::as_raw(self), seconds).ok() |
| } |
| pub unsafe fn FreeBuffers(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).FreeBuffers)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFreeBuffers(&self, buffers: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetFreeBuffers)(::windows::core::Interface::as_raw(self), buffers).ok() |
| } |
| pub unsafe fn Guid(&self) -> ::windows::core::Result<::windows::core::GUID> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::GUID>(); |
| (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetGuid(&self, guid: ::windows::core::GUID) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(guid)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn IsKernelTrace(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).IsKernelTrace)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn MaximumBuffers(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).MaximumBuffers)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMaximumBuffers(&self, buffers: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetMaximumBuffers)(::windows::core::Interface::as_raw(self), buffers).ok() |
| } |
| pub unsafe fn MinimumBuffers(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).MinimumBuffers)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMinimumBuffers(&self, buffers: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetMinimumBuffers)(::windows::core::Interface::as_raw(self), buffers).ok() |
| } |
| pub unsafe fn NumberOfBuffers(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).NumberOfBuffers)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetNumberOfBuffers(&self, buffers: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetNumberOfBuffers)(::windows::core::Interface::as_raw(self), buffers).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn PreallocateFile(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).PreallocateFile)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetPreallocateFile<P0>(&self, allocate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetPreallocateFile)(::windows::core::Interface::as_raw(self), allocate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ProcessMode(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ProcessMode)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetProcessMode<P0>(&self, process: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetProcessMode)(::windows::core::Interface::as_raw(self), process.into_param().abi()).ok() |
| } |
| pub unsafe fn RealTimeBuffersLost(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).RealTimeBuffersLost)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetRealTimeBuffersLost(&self, buffers: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetRealTimeBuffersLost)(::windows::core::Interface::as_raw(self), buffers).ok() |
| } |
| pub unsafe fn SessionId(&self) -> ::windows::core::Result<u64> { |
| let mut result__ = ::windows::core::zeroed::<u64>(); |
| (::windows::core::Interface::vtable(self).SessionId)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSessionId(&self, id: u64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSessionId)(::windows::core::Interface::as_raw(self), id).ok() |
| } |
| pub unsafe fn SessionName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).SessionName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSessionName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSessionName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn SessionThreadId(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).SessionThreadId)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSessionThreadId(&self, tid: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetSessionThreadId)(::windows::core::Interface::as_raw(self), tid).ok() |
| } |
| pub unsafe fn StreamMode(&self) -> ::windows::core::Result<StreamMode> { |
| let mut result__ = ::windows::core::zeroed::<StreamMode>(); |
| (::windows::core::Interface::vtable(self).StreamMode)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetStreamMode(&self, mode: StreamMode) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetStreamMode)(::windows::core::Interface::as_raw(self), mode).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn TraceDataProviders(&self) -> ::windows::core::Result<ITraceDataProviderCollection> { |
| let mut result__ = ::windows::core::zeroed::<ITraceDataProviderCollection>(); |
| (::windows::core::Interface::vtable(self).TraceDataProviders)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(ITraceDataCollector, ::windows::core::IUnknown, super::Com::IDispatch, IDataCollector); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for ITraceDataCollector { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for ITraceDataCollector {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for ITraceDataCollector { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ITraceDataCollector").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for ITraceDataCollector { |
| type Vtable = ITraceDataCollector_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for ITraceDataCollector { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for ITraceDataCollector { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0383750b_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ITraceDataCollector_Vtbl { |
| pub base__: IDataCollector_Vtbl, |
| pub BufferSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: *mut u32) -> ::windows::core::HRESULT, |
| pub SetBufferSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: u32) -> ::windows::core::HRESULT, |
| pub BuffersLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: *mut u32) -> ::windows::core::HRESULT, |
| pub SetBuffersLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: u32) -> ::windows::core::HRESULT, |
| pub BuffersWritten: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: *mut u32) -> ::windows::core::HRESULT, |
| pub SetBuffersWritten: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: u32) -> ::windows::core::HRESULT, |
| pub ClockType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clock: *mut ClockType) -> ::windows::core::HRESULT, |
| pub SetClockType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clock: ClockType) -> ::windows::core::HRESULT, |
| pub EventsLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, events: *mut u32) -> ::windows::core::HRESULT, |
| pub SetEventsLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, events: u32) -> ::windows::core::HRESULT, |
| pub ExtendedModes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: *mut u32) -> ::windows::core::HRESULT, |
| pub SetExtendedModes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: u32) -> ::windows::core::HRESULT, |
| pub FlushTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: *mut u32) -> ::windows::core::HRESULT, |
| pub SetFlushTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: u32) -> ::windows::core::HRESULT, |
| pub FreeBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: *mut u32) -> ::windows::core::HRESULT, |
| pub SetFreeBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: u32) -> ::windows::core::HRESULT, |
| pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, |
| pub SetGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::windows::core::GUID) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub IsKernelTrace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kernel: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| IsKernelTrace: usize, |
| pub MaximumBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: *mut u32) -> ::windows::core::HRESULT, |
| pub SetMaximumBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: u32) -> ::windows::core::HRESULT, |
| pub MinimumBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: *mut u32) -> ::windows::core::HRESULT, |
| pub SetMinimumBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: u32) -> ::windows::core::HRESULT, |
| pub NumberOfBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: *mut u32) -> ::windows::core::HRESULT, |
| pub SetNumberOfBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: u32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub PreallocateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allocate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| PreallocateFile: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetPreallocateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allocate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetPreallocateFile: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ProcessMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, process: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ProcessMode: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetProcessMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, process: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetProcessMode: usize, |
| pub RealTimeBuffersLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: *mut u32) -> ::windows::core::HRESULT, |
| pub SetRealTimeBuffersLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: u32) -> ::windows::core::HRESULT, |
| pub SessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut u64) -> ::windows::core::HRESULT, |
| pub SetSessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: u64) -> ::windows::core::HRESULT, |
| pub SessionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetSessionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SessionThreadId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tid: *mut u32) -> ::windows::core::HRESULT, |
| pub SetSessionThreadId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tid: u32) -> ::windows::core::HRESULT, |
| pub StreamMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: *mut StreamMode) -> ::windows::core::HRESULT, |
| pub SetStreamMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: StreamMode) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub TraceDataProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providers: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| TraceDataProviders: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct ITraceDataProvider(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ITraceDataProvider { |
| pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDisplayName<P0>(&self, name: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), name.into_param().abi()).ok() |
| } |
| pub unsafe fn Guid(&self) -> ::windows::core::Result<::windows::core::GUID> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::GUID>(); |
| (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetGuid(&self, guid: ::windows::core::GUID) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(guid)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Level(&self) -> ::windows::core::Result<IValueMap> { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).Level)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn KeywordsAny(&self) -> ::windows::core::Result<IValueMap> { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).KeywordsAny)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn KeywordsAll(&self) -> ::windows::core::Result<IValueMap> { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).KeywordsAll)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Properties(&self) -> ::windows::core::Result<IValueMap> { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).Properties)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn FilterEnabled(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).FilterEnabled)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetFilterEnabled<P0>(&self, filterenabled: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetFilterEnabled)(::windows::core::Interface::as_raw(self), filterenabled.into_param().abi()).ok() |
| } |
| pub unsafe fn FilterType(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).FilterType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetFilterType(&self, ultype: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetFilterType)(::windows::core::Interface::as_raw(self), ultype).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn FilterData(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { |
| let mut result__ = ::windows::core::zeroed::<*mut super::Com::SAFEARRAY>(); |
| (::windows::core::Interface::vtable(self).FilterData)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn SetFilterData(&self, pdata: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetFilterData)(::windows::core::Interface::as_raw(self), pdata).ok() |
| } |
| pub unsafe fn Query<P0, P1>(&self, bstrname: P0, bstrserver: P1) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).Query)(::windows::core::Interface::as_raw(self), bstrname.into_param().abi(), bstrserver.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Resolve<P0>(&self, pfrom: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::Com::IDispatch>, |
| { |
| (::windows::core::Interface::vtable(self).Resolve)(::windows::core::Interface::as_raw(self), pfrom.into_param().abi()).ok() |
| } |
| pub unsafe fn SetSecurity<P0>(&self, sddl: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSecurity)(::windows::core::Interface::as_raw(self), sddl.into_param().abi()).ok() |
| } |
| pub unsafe fn GetSecurity(&self, securityinfo: u32) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).GetSecurity)(::windows::core::Interface::as_raw(self), securityinfo, &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn GetRegisteredProcesses(&self) -> ::windows::core::Result<IValueMap> { |
| let mut result__ = ::windows::core::zeroed::<IValueMap>(); |
| (::windows::core::Interface::vtable(self).GetRegisteredProcesses)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(ITraceDataProvider, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for ITraceDataProvider { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for ITraceDataProvider {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for ITraceDataProvider { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ITraceDataProvider").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for ITraceDataProvider { |
| type Vtable = ITraceDataProvider_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for ITraceDataProvider { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for ITraceDataProvider { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837512_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ITraceDataProvider_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, |
| pub SetGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::windows::core::GUID) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Level: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplevel: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Level: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub KeywordsAny: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppkeywords: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| KeywordsAny: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub KeywordsAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppkeywords: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| KeywordsAll: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Properties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Properties: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub FilterEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filterenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| FilterEnabled: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetFilterEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filterenabled: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetFilterEnabled: usize, |
| pub FilterType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pultype: *mut u32) -> ::windows::core::HRESULT, |
| pub SetFilterType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ultype: u32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub FilterData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdata: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| FilterData: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub SetFilterData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| SetFilterData: usize, |
| pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::std::mem::MaybeUninit<::windows::core::BSTR>, bstrserver: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfrom: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Resolve: usize, |
| pub SetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sddl: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub GetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securityinfo: u32, sddl: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub GetRegisteredProcesses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| GetRegisteredProcesses: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct ITraceDataProviderCollection(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ITraceDataProviderCollection { |
| pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn get_Item(&self, index: super::Com::VARIANT) -> ::windows::core::Result<ITraceDataProvider> { |
| let mut result__ = ::windows::core::zeroed::<ITraceDataProvider>(); |
| (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::IUnknown>(); |
| (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Add<P0>(&self, pprovider: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<ITraceDataProvider>, |
| { |
| (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), pprovider.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Remove(&self, vprovider: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(vprovider)).ok() |
| } |
| pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn AddRange<P0>(&self, providers: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<ITraceDataProviderCollection>, |
| { |
| (::windows::core::Interface::vtable(self).AddRange)(::windows::core::Interface::as_raw(self), providers.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn CreateTraceDataProvider(&self) -> ::windows::core::Result<ITraceDataProvider> { |
| let mut result__ = ::windows::core::zeroed::<ITraceDataProvider>(); |
| (::windows::core::Interface::vtable(self).CreateTraceDataProvider)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn GetTraceDataProviders<P0>(&self, server: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).GetTraceDataProviders)(::windows::core::Interface::as_raw(self), server.into_param().abi()).ok() |
| } |
| pub unsafe fn GetTraceDataProvidersByProcess<P0>(&self, server: P0, pid: u32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).GetTraceDataProvidersByProcess)(::windows::core::Interface::as_raw(self), server.into_param().abi(), pid).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(ITraceDataProviderCollection, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for ITraceDataProviderCollection { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for ITraceDataProviderCollection {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for ITraceDataProviderCollection { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ITraceDataProviderCollection").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for ITraceDataProviderCollection { |
| type Vtable = ITraceDataProviderCollection_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for ITraceDataProviderCollection { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for ITraceDataProviderCollection { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837510_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ITraceDataProviderCollection_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT, ppprovider: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| get_Item: usize, |
| pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprovider: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Add: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vprovider: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Remove: usize, |
| pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providers: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| AddRange: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub CreateTraceDataProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provider: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| CreateTraceDataProvider: usize, |
| pub GetTraceDataProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub GetTraceDataProvidersByProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::std::mem::MaybeUninit<::windows::core::BSTR>, pid: u32) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IValueMap(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IValueMap { |
| pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn get_Item(&self, index: super::Com::VARIANT) -> ::windows::core::Result<IValueMapItem> { |
| let mut result__ = ::windows::core::zeroed::<IValueMapItem>(); |
| (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(index), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::IUnknown>(); |
| (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDescription<P0>(&self, description: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Value(&self) -> ::windows::core::Result<super::Com::VARIANT> { |
| let mut result__ = ::windows::core::zeroed::<super::Com::VARIANT>(); |
| (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn SetValue(&self, value: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(value)).ok() |
| } |
| pub unsafe fn ValueMapType(&self) -> ::windows::core::Result<ValueMapType> { |
| let mut result__ = ::windows::core::zeroed::<ValueMapType>(); |
| (::windows::core::Interface::vtable(self).ValueMapType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetValueMapType(&self, r#type: ValueMapType) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetValueMapType)(::windows::core::Interface::as_raw(self), r#type).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Add(&self, value: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(value)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Remove(&self, value: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(value)).ok() |
| } |
| pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn AddRange<P0>(&self, map: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<IValueMap>, |
| { |
| (::windows::core::Interface::vtable(self).AddRange)(::windows::core::Interface::as_raw(self), map.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn CreateValueMapItem(&self) -> ::windows::core::Result<IValueMapItem> { |
| let mut result__ = ::windows::core::zeroed::<IValueMapItem>(); |
| (::windows::core::Interface::vtable(self).CreateValueMapItem)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IValueMap, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IValueMap { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IValueMap {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IValueMap { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IValueMap").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IValueMap { |
| type Vtable = IValueMap_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IValueMap { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IValueMap { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837534_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IValueMap_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: super::Com::VARIANT, value: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| get_Item: usize, |
| pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Value: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| SetValue: usize, |
| pub ValueMapType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut ValueMapType) -> ::windows::core::HRESULT, |
| pub SetValueMapType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ValueMapType) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Add: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Remove: usize, |
| pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, map: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| AddRange: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub CreateValueMapItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| CreateValueMapItem: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(transparent)] |
| pub struct IValueMapItem(::windows::core::IUnknown); |
| #[cfg(feature = "Win32_System_Com")] |
| impl IValueMapItem { |
| pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDescription<P0>(&self, description: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Enabled(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).Enabled)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetEnabled<P0>(&self, enabled: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetEnabled)(::windows::core::Interface::as_raw(self), enabled.into_param().abi()).ok() |
| } |
| pub unsafe fn Key(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Key)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetKey<P0>(&self, key: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetKey)(::windows::core::Interface::as_raw(self), key.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Value(&self) -> ::windows::core::Result<super::Com::VARIANT> { |
| let mut result__ = ::windows::core::zeroed::<super::Com::VARIANT>(); |
| (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn SetValue(&self, value: super::Com::VARIANT) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(value)).ok() |
| } |
| pub unsafe fn ValueMapType(&self) -> ::windows::core::Result<ValueMapType> { |
| let mut result__ = ::windows::core::zeroed::<ValueMapType>(); |
| (::windows::core::Interface::vtable(self).ValueMapType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetValueMapType(&self, r#type: ValueMapType) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetValueMapType)(::windows::core::Interface::as_raw(self), r#type).ok() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| ::windows::imp::interface_hierarchy!(IValueMapItem, ::windows::core::IUnknown, super::Com::IDispatch); |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::PartialEq for IValueMapItem { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::cmp::Eq for IValueMapItem {} |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::fmt::Debug for IValueMapItem { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IValueMapItem").field(&self.0).finish() |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::Interface for IValueMapItem { |
| type Vtable = IValueMapItem_Vtbl; |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| impl ::core::clone::Clone for IValueMapItem { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| unsafe impl ::windows::core::ComInterface for IValueMapItem { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837533_098b_11d8_9414_505054503030); |
| } |
| #[cfg(feature = "Win32_System_Com")] |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IValueMapItem_Vtbl { |
| pub base__: super::Com::IDispatch_Vtbl, |
| pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Enabled: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetEnabled: usize, |
| pub Key: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Value: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| SetValue: usize, |
| pub ValueMapType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut ValueMapType) -> ::windows::core::HRESULT, |
| pub SetValueMapType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ValueMapType) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| pub struct _ICounterItemUnion(::windows::core::IUnknown); |
| impl _ICounterItemUnion { |
| pub unsafe fn Value(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn Color(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).Color)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetWidth(&self, iwidth: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetWidth)(::windows::core::Interface::as_raw(self), iwidth).ok() |
| } |
| pub unsafe fn Width(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Width)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLineStyle(&self, ilinestyle: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetLineStyle)(::windows::core::Interface::as_raw(self), ilinestyle).ok() |
| } |
| pub unsafe fn LineStyle(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).LineStyle)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetScaleFactor(&self, iscale: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetScaleFactor)(::windows::core::Interface::as_raw(self), iscale).ok() |
| } |
| pub unsafe fn ScaleFactor(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).ScaleFactor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn GetValue(&self, value: *mut f64, status: *mut i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), value, status).ok() |
| } |
| pub unsafe fn GetStatistics(&self, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).GetStatistics)(::windows::core::Interface::as_raw(self), max, min, avg, status).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetSelected<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetSelected)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Selected(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).Selected)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetVisible<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetVisible)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Visible(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).Visible)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn GetDataAt(&self, iindex: i32, iwhich: SysmonDataType) -> ::windows::core::Result<super::Com::VARIANT> { |
| let mut result__ = ::windows::core::zeroed::<super::Com::VARIANT>(); |
| (::windows::core::Interface::vtable(self).GetDataAt)(::windows::core::Interface::as_raw(self), iindex, iwhich, &mut result__).from_abi(result__) |
| } |
| } |
| ::windows::imp::interface_hierarchy!(_ICounterItemUnion, ::windows::core::IUnknown); |
| impl ::core::cmp::PartialEq for _ICounterItemUnion { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for _ICounterItemUnion {} |
| impl ::core::fmt::Debug for _ICounterItemUnion { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("_ICounterItemUnion").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::Interface for _ICounterItemUnion { |
| type Vtable = _ICounterItemUnion_Vtbl; |
| } |
| impl ::core::clone::Clone for _ICounterItemUnion { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for _ICounterItemUnion { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde1a6b74_9182_4c41_8e2c_24c2cd30ee83); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct _ICounterItemUnion_Vtbl { |
| pub base__: ::windows::core::IUnknown_Vtbl, |
| pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdblvalue: *mut f64) -> ::windows::core::HRESULT, |
| pub SetColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| pub Color: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iwidth: i32) -> ::windows::core::HRESULT, |
| pub Width: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub SetLineStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ilinestyle: i32) -> ::windows::core::HRESULT, |
| pub LineStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub SetScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iscale: i32) -> ::windows::core::HRESULT, |
| pub ScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut f64, status: *mut i32) -> ::windows::core::HRESULT, |
| pub GetStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetSelected: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Selected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Selected: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetVisible: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Visible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Visible: usize, |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub GetDataAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: i32, iwhich: SysmonDataType, pvariant: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| GetDataAt: usize, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| pub struct _ISystemMonitorUnion(::windows::core::IUnknown); |
| impl _ISystemMonitorUnion { |
| pub unsafe fn Appearance(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).Appearance)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetAppearance(&self, iappearance: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetAppearance)(::windows::core::Interface::as_raw(self), iappearance).ok() |
| } |
| pub unsafe fn BackColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).BackColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBackColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetBackColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn BorderStyle(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).BorderStyle)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBorderStyle(&self, iborderstyle: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetBorderStyle)(::windows::core::Interface::as_raw(self), iborderstyle).ok() |
| } |
| pub unsafe fn ForeColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).ForeColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetForeColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetForeColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn Font(&self) -> ::windows::core::Result<super::Ole::IFontDisp> { |
| let mut result__ = ::windows::core::zeroed::<super::Ole::IFontDisp>(); |
| (::windows::core::Interface::vtable(self).Font)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub unsafe fn putref_Font<P0>(&self, pfont: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::Ole::IFontDisp>, |
| { |
| (::windows::core::Interface::vtable(self).putref_Font)(::windows::core::Interface::as_raw(self), pfont.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn Counters(&self) -> ::windows::core::Result<ICounters> { |
| let mut result__ = ::windows::core::zeroed::<ICounters>(); |
| (::windows::core::Interface::vtable(self).Counters)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowVerticalGrid<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowVerticalGrid)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowVerticalGrid(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowVerticalGrid)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowHorizontalGrid<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowHorizontalGrid)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowHorizontalGrid(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowHorizontalGrid)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowLegend<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowLegend)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowLegend(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowLegend)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowScaleLabels<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowScaleLabels)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowScaleLabels(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowScaleLabels)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowValueBar<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowValueBar)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowValueBar(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowValueBar)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMaximumScale(&self, ivalue: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetMaximumScale)(::windows::core::Interface::as_raw(self), ivalue).ok() |
| } |
| pub unsafe fn MaximumScale(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).MaximumScale)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetMinimumScale(&self, ivalue: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetMinimumScale)(::windows::core::Interface::as_raw(self), ivalue).ok() |
| } |
| pub unsafe fn MinimumScale(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).MinimumScale)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetUpdateInterval(&self, fvalue: f32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetUpdateInterval)(::windows::core::Interface::as_raw(self), fvalue).ok() |
| } |
| pub unsafe fn UpdateInterval(&self) -> ::windows::core::Result<f32> { |
| let mut result__ = ::windows::core::zeroed::<f32>(); |
| (::windows::core::Interface::vtable(self).UpdateInterval)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDisplayType(&self, edisplaytype: DisplayTypeConstants) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDisplayType)(::windows::core::Interface::as_raw(self), edisplaytype).ok() |
| } |
| pub unsafe fn DisplayType(&self) -> ::windows::core::Result<DisplayTypeConstants> { |
| let mut result__ = ::windows::core::zeroed::<DisplayTypeConstants>(); |
| (::windows::core::Interface::vtable(self).DisplayType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetManualUpdate<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetManualUpdate)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ManualUpdate(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ManualUpdate)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetGraphTitle<P0>(&self, bstitle: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetGraphTitle)(::windows::core::Interface::as_raw(self), bstitle.into_param().abi()).ok() |
| } |
| pub unsafe fn GraphTitle(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).GraphTitle)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetYAxisLabel<P0>(&self, bstitle: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetYAxisLabel)(::windows::core::Interface::as_raw(self), bstitle.into_param().abi()).ok() |
| } |
| pub unsafe fn YAxisLabel(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).YAxisLabel)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn CollectSample(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).CollectSample)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn UpdateGraph(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).UpdateGraph)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn BrowseCounters(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).BrowseCounters)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn DisplayProperties(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).DisplayProperties)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn Counter(&self, iindex: i32) -> ::windows::core::Result<ICounterItem> { |
| let mut result__ = ::windows::core::zeroed::<ICounterItem>(); |
| (::windows::core::Interface::vtable(self).Counter)(::windows::core::Interface::as_raw(self), iindex, &mut result__).from_abi(result__) |
| } |
| pub unsafe fn AddCounter<P0>(&self, bspath: P0) -> ::windows::core::Result<ICounterItem> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| let mut result__ = ::windows::core::zeroed::<ICounterItem>(); |
| (::windows::core::Interface::vtable(self).AddCounter)(::windows::core::Interface::as_raw(self), bspath.into_param().abi(), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn DeleteCounter<P0>(&self, pctr: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<ICounterItem>, |
| { |
| (::windows::core::Interface::vtable(self).DeleteCounter)(::windows::core::Interface::as_raw(self), pctr.into_param().abi()).ok() |
| } |
| pub unsafe fn BackColorCtl(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).BackColorCtl)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetBackColorCtl(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetBackColorCtl)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn SetLogFileName<P0>(&self, bsfilename: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetLogFileName)(::windows::core::Interface::as_raw(self), bsfilename.into_param().abi()).ok() |
| } |
| pub unsafe fn LogFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).LogFileName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogViewStart(&self, starttime: f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetLogViewStart)(::windows::core::Interface::as_raw(self), starttime).ok() |
| } |
| pub unsafe fn LogViewStart(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).LogViewStart)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogViewStop(&self, stoptime: f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetLogViewStop)(::windows::core::Interface::as_raw(self), stoptime).ok() |
| } |
| pub unsafe fn LogViewStop(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).LogViewStop)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn GridColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).GridColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetGridColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetGridColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| pub unsafe fn TimeBarColor(&self) -> ::windows::core::Result<u32> { |
| let mut result__ = ::windows::core::zeroed::<u32>(); |
| (::windows::core::Interface::vtable(self).TimeBarColor)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetTimeBarColor(&self, color: u32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetTimeBarColor)(::windows::core::Interface::as_raw(self), color).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn Highlight(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).Highlight)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetHighlight<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetHighlight)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowToolbar(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowToolbar)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowToolbar<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowToolbar)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| pub unsafe fn Paste(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Paste)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn Copy(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Copy)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetReadOnly<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetReadOnly)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ReadOnly(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ReadOnly)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetReportValueType(&self, ereportvaluetype: ReportValueTypeConstants) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetReportValueType)(::windows::core::Interface::as_raw(self), ereportvaluetype).ok() |
| } |
| pub unsafe fn ReportValueType(&self) -> ::windows::core::Result<ReportValueTypeConstants> { |
| let mut result__ = ::windows::core::zeroed::<ReportValueTypeConstants>(); |
| (::windows::core::Interface::vtable(self).ReportValueType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetMonitorDuplicateInstances<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetMonitorDuplicateInstances)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn MonitorDuplicateInstances(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).MonitorDuplicateInstances)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDisplayFilter(&self, ivalue: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDisplayFilter)(::windows::core::Interface::as_raw(self), ivalue).ok() |
| } |
| pub unsafe fn DisplayFilter(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).DisplayFilter)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_System_Com\"`*"] |
| #[cfg(feature = "Win32_System_Com")] |
| pub unsafe fn LogFiles(&self) -> ::windows::core::Result<ILogFiles> { |
| let mut result__ = ::windows::core::zeroed::<ILogFiles>(); |
| (::windows::core::Interface::vtable(self).LogFiles)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDataSourceType(&self, edatasourcetype: DataSourceTypeConstants) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDataSourceType)(::windows::core::Interface::as_raw(self), edatasourcetype).ok() |
| } |
| pub unsafe fn DataSourceType(&self) -> ::windows::core::Result<DataSourceTypeConstants> { |
| let mut result__ = ::windows::core::zeroed::<DataSourceTypeConstants>(); |
| (::windows::core::Interface::vtable(self).DataSourceType)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSqlDsnName<P0>(&self, bssqldsnname: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSqlDsnName)(::windows::core::Interface::as_raw(self), bssqldsnname.into_param().abi()).ok() |
| } |
| pub unsafe fn SqlDsnName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).SqlDsnName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetSqlLogSetName<P0>(&self, bssqllogsetname: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SetSqlLogSetName)(::windows::core::Interface::as_raw(self), bssqllogsetname.into_param().abi()).ok() |
| } |
| pub unsafe fn SqlLogSetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::BSTR>(); |
| (::windows::core::Interface::vtable(self).SqlLogSetName)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetEnableDigitGrouping<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetEnableDigitGrouping)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn EnableDigitGrouping(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).EnableDigitGrouping)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetEnableToolTips<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetEnableToolTips)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn EnableToolTips(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).EnableToolTips)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetShowTimeAxisLabels<P0>(&self, bstate: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetShowTimeAxisLabels)(::windows::core::Interface::as_raw(self), bstate.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ShowTimeAxisLabels(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ShowTimeAxisLabels)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn SetChartScroll<P0>(&self, bscroll: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).SetChartScroll)(::windows::core::Interface::as_raw(self), bscroll.into_param().abi()).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ChartScroll(&self) -> ::windows::core::Result<super::super::Foundation::VARIANT_BOOL> { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::VARIANT_BOOL>(); |
| (::windows::core::Interface::vtable(self).ChartScroll)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetDataPointCount(&self, inewcount: i32) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetDataPointCount)(::windows::core::Interface::as_raw(self), inewcount).ok() |
| } |
| pub unsafe fn DataPointCount(&self) -> ::windows::core::Result<i32> { |
| let mut result__ = ::windows::core::zeroed::<i32>(); |
| (::windows::core::Interface::vtable(self).DataPointCount)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn ScaleToFit<P0>(&self, bselectedcountersonly: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).ScaleToFit)(::windows::core::Interface::as_raw(self), bselectedcountersonly.into_param().abi()).ok() |
| } |
| pub unsafe fn SaveAs<P0>(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).SaveAs)(::windows::core::Interface::as_raw(self), bstrfilename.into_param().abi(), esysmonfiletype).ok() |
| } |
| pub unsafe fn Relog<P0>(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).Relog)(::windows::core::Interface::as_raw(self), bstrfilename.into_param().abi(), esysmonfiletype, ifilter).ok() |
| } |
| pub unsafe fn ClearData(&self) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).ClearData)(::windows::core::Interface::as_raw(self)).ok() |
| } |
| pub unsafe fn LogSourceStartTime(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).LogSourceStartTime)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn LogSourceStopTime(&self) -> ::windows::core::Result<f64> { |
| let mut result__ = ::windows::core::zeroed::<f64>(); |
| (::windows::core::Interface::vtable(self).LogSourceStopTime)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) |
| } |
| pub unsafe fn SetLogViewRange(&self, starttime: f64, stoptime: f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).SetLogViewRange)(::windows::core::Interface::as_raw(self), starttime, stoptime).ok() |
| } |
| pub unsafe fn GetLogViewRange(&self, starttime: *mut f64, stoptime: *mut f64) -> ::windows::core::Result<()> { |
| (::windows::core::Interface::vtable(self).GetLogViewRange)(::windows::core::Interface::as_raw(self), starttime, stoptime).ok() |
| } |
| #[doc = "*Required features: `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub unsafe fn BatchingLock<P0>(&self, flock: P0, ebatchreason: SysmonBatchReason) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::VARIANT_BOOL>, |
| { |
| (::windows::core::Interface::vtable(self).BatchingLock)(::windows::core::Interface::as_raw(self), flock.into_param().abi(), ebatchreason).ok() |
| } |
| pub unsafe fn LoadSettings<P0>(&self, bstrsettingfilename: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::BSTR>, |
| { |
| (::windows::core::Interface::vtable(self).LoadSettings)(::windows::core::Interface::as_raw(self), bstrsettingfilename.into_param().abi()).ok() |
| } |
| } |
| ::windows::imp::interface_hierarchy!(_ISystemMonitorUnion, ::windows::core::IUnknown); |
| impl ::core::cmp::PartialEq for _ISystemMonitorUnion { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for _ISystemMonitorUnion {} |
| impl ::core::fmt::Debug for _ISystemMonitorUnion { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("_ISystemMonitorUnion").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::Interface for _ISystemMonitorUnion { |
| type Vtable = _ISystemMonitorUnion_Vtbl; |
| } |
| impl ::core::clone::Clone for _ISystemMonitorUnion { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for _ISystemMonitorUnion { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc8a77338_265f_4de5_aa25_c7da1ce5a8f4); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct _ISystemMonitorUnion_Vtbl { |
| pub base__: ::windows::core::IUnknown_Vtbl, |
| pub Appearance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iappearance: *mut i32) -> ::windows::core::HRESULT, |
| pub SetAppearance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iappearance: i32) -> ::windows::core::HRESULT, |
| pub BackColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetBackColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| pub BorderStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iborderstyle: *mut i32) -> ::windows::core::HRESULT, |
| pub SetBorderStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iborderstyle: i32) -> ::windows::core::HRESULT, |
| pub ForeColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetForeColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub Font: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfont: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| Font: usize, |
| #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] |
| pub putref_Font: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfont: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] |
| putref_Font: usize, |
| #[cfg(feature = "Win32_System_Com")] |
| pub Counters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppicounters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| Counters: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowVerticalGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowVerticalGrid: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowVerticalGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowVerticalGrid: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowHorizontalGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowHorizontalGrid: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowHorizontalGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowHorizontalGrid: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowLegend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowLegend: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowLegend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowLegend: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowScaleLabels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowScaleLabels: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowScaleLabels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowScaleLabels: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowValueBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowValueBar: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowValueBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowValueBar: usize, |
| pub SetMaximumScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ivalue: i32) -> ::windows::core::HRESULT, |
| pub MaximumScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub SetMinimumScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ivalue: i32) -> ::windows::core::HRESULT, |
| pub MinimumScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| pub SetUpdateInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fvalue: f32) -> ::windows::core::HRESULT, |
| pub UpdateInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfvalue: *mut f32) -> ::windows::core::HRESULT, |
| pub SetDisplayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edisplaytype: DisplayTypeConstants) -> ::windows::core::HRESULT, |
| pub DisplayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedisplaytype: *mut DisplayTypeConstants) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetManualUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetManualUpdate: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ManualUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ManualUpdate: usize, |
| pub SetGraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub GraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetYAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub YAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub CollectSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub UpdateGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub BrowseCounters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub DisplayProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub Counter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: i32, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub AddCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bspath: ::std::mem::MaybeUninit<::windows::core::BSTR>, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub DeleteCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctr: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub BackColorCtl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetBackColorCtl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| pub SetLogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub LogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetLogViewStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64) -> ::windows::core::HRESULT, |
| pub LogViewStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: *mut f64) -> ::windows::core::HRESULT, |
| pub SetLogViewStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stoptime: f64) -> ::windows::core::HRESULT, |
| pub LogViewStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stoptime: *mut f64) -> ::windows::core::HRESULT, |
| pub GridColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetGridColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| pub TimeBarColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, |
| pub SetTimeBarColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub Highlight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| Highlight: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetHighlight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetHighlight: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowToolbar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowToolbar: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowToolbar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowToolbar: usize, |
| pub Paste: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetReadOnly: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ReadOnly: usize, |
| pub SetReportValueType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ereportvaluetype: ReportValueTypeConstants) -> ::windows::core::HRESULT, |
| pub ReportValueType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pereportvaluetype: *mut ReportValueTypeConstants) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetMonitorDuplicateInstances: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetMonitorDuplicateInstances: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub MonitorDuplicateInstances: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| MonitorDuplicateInstances: usize, |
| pub SetDisplayFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ivalue: i32) -> ::windows::core::HRESULT, |
| pub DisplayFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_System_Com")] |
| pub LogFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppilogfiles: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_System_Com"))] |
| LogFiles: usize, |
| pub SetDataSourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edatasourcetype: DataSourceTypeConstants) -> ::windows::core::HRESULT, |
| pub DataSourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedatasourcetype: *mut DataSourceTypeConstants) -> ::windows::core::HRESULT, |
| pub SetSqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SetSqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| pub SqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetEnableDigitGrouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetEnableDigitGrouping: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub EnableDigitGrouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| EnableDigitGrouping: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetEnableToolTips: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetEnableToolTips: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub EnableToolTips: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| EnableToolTips: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetShowTimeAxisLabels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetShowTimeAxisLabels: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ShowTimeAxisLabels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ShowTimeAxisLabels: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub SetChartScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bscroll: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| SetChartScroll: usize, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ChartScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbscroll: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ChartScroll: usize, |
| pub SetDataPointCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inewcount: i32) -> ::windows::core::HRESULT, |
| pub DataPointCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidatapointcount: *mut i32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub ScaleToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bselectedcountersonly: super::super::Foundation::VARIANT_BOOL) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| ScaleToFit: usize, |
| pub SaveAs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT, |
| pub Relog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT, |
| pub ClearData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub LogSourceStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, |
| pub LogSourceStopTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, |
| pub SetLogViewRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64, stoptime: f64) -> ::windows::core::HRESULT, |
| pub GetLogViewRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: *mut f64, stoptime: *mut f64) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Win32_Foundation")] |
| pub BatchingLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flock: super::super::Foundation::VARIANT_BOOL, ebatchreason: SysmonBatchReason) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Win32_Foundation"))] |
| BatchingLock: usize, |
| pub LoadSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const AppearPropPage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe49741e9_93a8_4ab1_8e96_bf4482282e9c); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const BootTraceSession: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837538_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const BootTraceSessionCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837539_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const CounterItem: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc4d2d8e0_d1dd_11ce_940f_008029004348); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const CounterItem2: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x43196c62_c31f_4ce3_a02e_79efe0f6a525); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const CounterPropPage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcf948561_ede8_11ce_941e_008029004347); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const Counters: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb2b066d2_2aac_11cf_942f_008029004347); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const DIID_DICounterItem: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc08c4ff2_0e2e_11cf_942c_008029004347); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const DIID_DILogFileItem: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8d093ffc_f777_4917_82d1_833fbc54c58f); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const DIID_DISystemMonitor: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x13d73d81_c32e_11cf_9398_00aa00a3ddea); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const DIID_DISystemMonitorEvents: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x84979930_4ab3_11cf_943a_008029004347); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const DIID_DISystemMonitorInternal: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x194eb242_c32c_11cf_9398_00aa00a3ddea); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const DataCollectorSet: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837521_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const DataCollectorSetCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837525_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const GeneralPropPage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc3e5d3d2_1a03_11cf_942d_008029004347); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const GraphPropPage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc3e5d3d3_1a03_11cf_942d_008029004347); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const H_WBEM_DATASOURCE: i32 = -1i32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const LIBID_SystemMonitor: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1b773e42_2509_11cf_942f_008029004347); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const LegacyDataCollectorSet: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837526_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const LegacyDataCollectorSetCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837527_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const LegacyTraceSession: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837528_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const LegacyTraceSessionCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837529_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const LogFileItem: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x16ec5be8_df93_4237_94e4_9ee918111d71); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const LogFiles: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2735d9fd_f6b9_4f19_a5d9_e2d068584bc5); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const MAX_COUNTER_PATH: u32 = 256u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const MAX_PERF_OBJECTS_IN_QUERY_FUNCTION: i32 = 64i32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_ACCESS_DENIED: u32 = 3221228507u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_ASYNC_QUERY_TIMEOUT: u32 = 2147485659u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_BINARY_LOG_CORRUPT: u32 = 3221228535u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CALC_NEGATIVE_DENOMINATOR: u32 = 2147485654u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CALC_NEGATIVE_TIMEBASE: u32 = 2147485655u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CALC_NEGATIVE_VALUE: u32 = 2147485656u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CANNOT_CONNECT_MACHINE: u32 = 3221228483u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CANNOT_CONNECT_WMI_SERVER: u32 = 3221228520u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CANNOT_READ_NAME_STRINGS: u32 = 3221228488u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCE: u32 = 2147485660u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_COUNTER_ALREADY_IN_QUERY: u32 = 3221228534u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_BAD_COUNTERNAME: u32 = 3221228480u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_INVALID_DATA: u32 = 3221228474u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_ITEM_NOT_VALIDATED: u32 = 2147485651u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_NEW_DATA: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_NO_COUNTER: u32 = 3221228473u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_NO_COUNTERNAME: u32 = 3221228479u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_NO_INSTANCE: u32 = 2147485649u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_NO_MACHINE: u32 = 2147485648u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_NO_OBJECT: u32 = 3221228472u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CSTATUS_VALID_DATA: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_DATA_SOURCE_IS_LOG_FILE: u32 = 3221228494u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_DATA_SOURCE_IS_REAL_TIME: u32 = 3221228495u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_DIALOG_CANCELLED: u32 = 2147485657u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_END_OF_LOG_FILE: u32 = 2147485658u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_ENTRY_NOT_IN_LOG_FILE: u32 = 3221228493u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_FILE_ALREADY_EXISTS: u32 = 3221228498u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_FILE_NOT_FOUND: u32 = 3221228497u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_FUNCTION_NOT_FOUND: u32 = 3221228478u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INCORRECT_APPEND_TIME: u32 = 3221228539u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INSUFFICIENT_BUFFER: u32 = 3221228482u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INVALID_ARGUMENT: u32 = 3221228477u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INVALID_BUFFER: u32 = 3221228481u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INVALID_DATA: u32 = 3221228486u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INVALID_DATASOURCE: u32 = 3221228509u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INVALID_HANDLE: u32 = 3221228476u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INVALID_INSTANCE: u32 = 3221228485u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INVALID_PATH: u32 = 3221228484u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INVALID_SQLDB: u32 = 3221228510u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_INVALID_SQL_LOG_FORMAT: u32 = 3221228533u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOGSVC_NOT_OPENED: u32 = 3221228505u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOGSVC_QUERY_NOT_FOUND: u32 = 3221228504u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_FILE_CREATE_ERROR: u32 = 3221228489u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_FILE_OPEN_ERROR: u32 = 3221228490u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_FILE_TOO_SMALL: u32 = 3221228508u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_SAMPLE_TOO_SMALL: u32 = 3221228536u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_NOT_FOUND: u32 = 3221228491u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_RETIRED_BIN: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_TRACE_GENERIC: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_TRACE_KERNEL: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_MAX_COUNTER_NAME: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_MAX_COUNTER_PATH: u32 = 2048u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_MAX_DATASOURCE_PATH: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_MAX_INSTANCE_NAME: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_MAX_SCALE: i32 = 7i32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_MEMORY_ALLOCATION_FAILURE: u32 = 3221228475u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_MIN_SCALE: i32 = -7i32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_MORE_DATA: u32 = 2147485650u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_NOEXPANDCOUNTERS: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_NOEXPANDINSTANCES: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_NOT_IMPLEMENTED: u32 = 3221228499u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_NO_COUNTERS: u32 = 3221228511u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_NO_DATA: u32 = 2147485653u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_NO_DIALOG_DATA: u32 = 3221228487u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_NO_MORE_DATA: u32 = 3221228492u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_OS_EARLIER_VERSION: u32 = 3221228538u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_OS_LATER_VERSION: u32 = 3221228537u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_COLLECTION_ALREADY_RUNNING: u32 = 3221228521u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_COLLECTION_NOT_FOUND: u32 = 3221228523u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_ERROR_ALREADY_EXISTS: u32 = 3221228526u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_ERROR_FILEPATH: u32 = 3221228528u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_ERROR_NAME_TOO_LONG: u32 = 3221228532u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_ERROR_NOSTART: u32 = 3221228525u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_ERROR_SCHEDULE_ELAPSED: u32 = 3221228524u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_ERROR_SCHEDULE_OVERLAP: u32 = 3221228522u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_ERROR_TYPE_MISMATCH: u32 = 3221228527u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_SERVICE_ERROR: u32 = 3221228529u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_VALIDATION_ERROR: u32 = 3221228530u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PLA_VALIDATION_WARNING: u32 = 2147486707u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_QUERY_PERF_DATA_TIMEOUT: u32 = 3221228542u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_REFRESHCOUNTERS: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_RETRY: u32 = 2147485652u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_SQL_ALLOCCON_FAILED: u32 = 3221228513u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_SQL_ALLOC_FAILED: u32 = 3221228512u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_SQL_ALTER_DETAIL_FAILED: u32 = 3221228541u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_SQL_BIND_FAILED: u32 = 3221228519u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_SQL_CONNECT_FAILED: u32 = 3221228518u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_SQL_EXEC_DIRECT_FAILED: u32 = 3221228514u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_SQL_FETCH_FAILED: u32 = 3221228515u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_SQL_MORE_RESULTS_FAILED: u32 = 3221228517u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_SQL_ROWCOUNT_FAILED: u32 = 3221228516u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_STRING_NOT_FOUND: u32 = 3221228500u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_UNABLE_MAP_NAME_FILES: u32 = 2147486677u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_UNABLE_READ_LOG_HEADER: u32 = 3221228496u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_UNKNOWN_LOGSVC_COMMAND: u32 = 3221228503u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_UNKNOWN_LOG_FORMAT: u32 = 3221228502u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_UNMATCHED_APPEND_COUNTER: u32 = 3221228540u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_WBEM_ERROR: u32 = 3221228506u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_ADD_COUNTER: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_AGGREGATE_INSTANCE: ::windows::core::PCWSTR = ::windows::core::w!("_Total"); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_AGGREGATE_MAX: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_ATTRIB_BY_REFERENCE: u64 = 1u64; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_ATTRIB_DISPLAY_AS_HEX: u64 = 16u64; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_ATTRIB_DISPLAY_AS_REAL: u64 = 8u64; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_ATTRIB_NO_DISPLAYABLE: u64 = 2u64; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_ATTRIB_NO_GROUP_SEPARATOR: u64 = 4u64; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COLLECT_END: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COLLECT_START: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTERSET_FLAG_AGGREGATE: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTERSET_FLAG_HISTORY: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTERSET_FLAG_INSTANCE: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTERSET_FLAG_MULTIPLE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTERSET_MULTI_INSTANCES: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTERSET_SINGLE_AGGREGATE: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTERSET_SINGLE_INSTANCE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTER_BASE: u32 = 196608u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTER_ELAPSED: u32 = 262144u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTER_FRACTION: u32 = 131072u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTER_HISTOGRAM: u32 = 393216u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTER_HISTOGRAM_TYPE: u32 = 2147483648u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTER_PRECISION: u32 = 458752u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTER_QUEUELEN: u32 = 327680u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTER_RATE: u32 = 65536u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTER_VALUE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DATA_REVISION: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DATA_VERSION: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DELTA_BASE: u32 = 8388608u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DELTA_COUNTER: u32 = 4194304u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DISPLAY_NOSHOW: u32 = 1073741824u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DISPLAY_NO_SUFFIX: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DISPLAY_PERCENT: u32 = 536870912u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DISPLAY_PER_SEC: u32 = 268435456u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DISPLAY_SECONDS: u32 = 805306368u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_ENUM_INSTANCES: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_FILTER: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_INVERSE_COUNTER: u32 = 16777216u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_MAX_INSTANCE_NAME: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_METADATA_MULTIPLE_INSTANCES: i32 = -2i32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_METADATA_NO_INSTANCES: i32 = -3i32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_MULTI_COUNTER: u32 = 33554432u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_NO_INSTANCES: i32 = -1i32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_NO_UNIQUE_ID: i32 = -1i32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_NUMBER_DECIMAL: u32 = 65536u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_NUMBER_DEC_1000: u32 = 131072u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_NUMBER_HEX: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_OBJECT_TIMER: u32 = 2097152u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_PROVIDER_DRIVER: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_PROVIDER_KERNEL_MODE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_PROVIDER_USER_MODE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REMOVE_COUNTER: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_SIZE_DWORD: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_SIZE_LARGE: u32 = 256u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_SIZE_VARIABLE_LEN: u32 = 768u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_SIZE_ZERO: u32 = 512u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_TEXT_ASCII: u32 = 65536u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_TEXT_UNICODE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_TIMER_100NS: u32 = 1048576u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_TIMER_TICK: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_TYPE_COUNTER: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_TYPE_NUMBER: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_TYPE_TEXT: u32 = 2048u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_TYPE_ZERO: u32 = 3072u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_WILDCARD_COUNTER: u32 = 4294967295u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_WILDCARD_INSTANCE: ::windows::core::PCWSTR = ::windows::core::w!("*"); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLAL_ALERT_CMD_LINE_A_NAME: u32 = 512u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLAL_ALERT_CMD_LINE_C_NAME: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLAL_ALERT_CMD_LINE_D_TIME: u32 = 2048u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLAL_ALERT_CMD_LINE_L_VAL: u32 = 4096u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLAL_ALERT_CMD_LINE_MASK: u32 = 32512u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLAL_ALERT_CMD_LINE_M_VAL: u32 = 8192u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLAL_ALERT_CMD_LINE_SINGLE: u32 = 256u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLAL_ALERT_CMD_LINE_U_TEXT: u32 = 16384u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLA_CAPABILITY_AUTOLOGGER: u32 = 32u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLA_CAPABILITY_LEGACY_SESSION: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLA_CAPABILITY_LEGACY_SVC: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLA_CAPABILITY_LOCAL: u32 = 268435456u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLA_CAPABILITY_V1_SESSION: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLA_CAPABILITY_V1_SVC: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PLA_CAPABILITY_V1_SYSTEM: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const S_PDH: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x04d66358_c4a1_419b_8023_23b73902de2c); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const ServerDataCollectorSet: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837531_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const ServerDataCollectorSetCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837532_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const SourcePropPage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0cf32aa1_7571_11d0_93c4_00aa00a3ddea); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const SystemDataCollectorSet: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837546_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const SystemDataCollectorSetCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837547_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const SystemMonitor: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc4d2d8e0_d1dd_11ce_940f_008029004347); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const SystemMonitor2: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7f30578c_5f38_4612_acfe_6ed04c7b7af8); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const TraceDataProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837513_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const TraceDataProviderCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837511_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const TraceSession: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0383751c_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const TraceSessionCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837530_098b_11d8_9414_505054503030); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const WINPERF_LOG_DEBUG: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const WINPERF_LOG_NONE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const WINPERF_LOG_USER: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const WINPERF_LOG_VERBOSE: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct AutoPathFormat(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaNone: AutoPathFormat = AutoPathFormat(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaPattern: AutoPathFormat = AutoPathFormat(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaComputer: AutoPathFormat = AutoPathFormat(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaMonthDayHour: AutoPathFormat = AutoPathFormat(256i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaSerialNumber: AutoPathFormat = AutoPathFormat(512i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaYearDayOfYear: AutoPathFormat = AutoPathFormat(1024i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaYearMonth: AutoPathFormat = AutoPathFormat(2048i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaYearMonthDay: AutoPathFormat = AutoPathFormat(4096i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaYearMonthDayHour: AutoPathFormat = AutoPathFormat(8192i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaMonthDayHourMinute: AutoPathFormat = AutoPathFormat(16384i32); |
| impl ::core::marker::Copy for AutoPathFormat {} |
| impl ::core::clone::Clone for AutoPathFormat { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for AutoPathFormat { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for AutoPathFormat { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for AutoPathFormat { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AutoPathFormat").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct ClockType(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaTimeStamp: ClockType = ClockType(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaPerformance: ClockType = ClockType(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaSystem: ClockType = ClockType(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaCycle: ClockType = ClockType(3i32); |
| impl ::core::marker::Copy for ClockType {} |
| impl ::core::clone::Clone for ClockType { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for ClockType { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for ClockType { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for ClockType { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ClockType").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct CommitMode(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaCreateNew: CommitMode = CommitMode(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaModify: CommitMode = CommitMode(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaCreateOrModify: CommitMode = CommitMode(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaUpdateRunningInstance: CommitMode = CommitMode(16i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaFlushTrace: CommitMode = CommitMode(32i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaValidateOnly: CommitMode = CommitMode(4096i32); |
| impl ::core::marker::Copy for CommitMode {} |
| impl ::core::clone::Clone for CommitMode { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for CommitMode { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for CommitMode { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for CommitMode { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("CommitMode").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct DataCollectorSetStatus(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaStopped: DataCollectorSetStatus = DataCollectorSetStatus(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaRunning: DataCollectorSetStatus = DataCollectorSetStatus(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaCompiling: DataCollectorSetStatus = DataCollectorSetStatus(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaPending: DataCollectorSetStatus = DataCollectorSetStatus(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaUndefined: DataCollectorSetStatus = DataCollectorSetStatus(4i32); |
| impl ::core::marker::Copy for DataCollectorSetStatus {} |
| impl ::core::clone::Clone for DataCollectorSetStatus { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for DataCollectorSetStatus { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for DataCollectorSetStatus { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for DataCollectorSetStatus { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DataCollectorSetStatus").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct DataCollectorType(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaPerformanceCounter: DataCollectorType = DataCollectorType(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaTrace: DataCollectorType = DataCollectorType(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaConfiguration: DataCollectorType = DataCollectorType(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaAlert: DataCollectorType = DataCollectorType(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaApiTrace: DataCollectorType = DataCollectorType(4i32); |
| impl ::core::marker::Copy for DataCollectorType {} |
| impl ::core::clone::Clone for DataCollectorType { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for DataCollectorType { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for DataCollectorType { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for DataCollectorType { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DataCollectorType").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct DataManagerSteps(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaCreateReport: DataManagerSteps = DataManagerSteps(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaRunRules: DataManagerSteps = DataManagerSteps(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaCreateHtml: DataManagerSteps = DataManagerSteps(4i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaFolderActions: DataManagerSteps = DataManagerSteps(8i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaResourceFreeing: DataManagerSteps = DataManagerSteps(16i32); |
| impl ::core::marker::Copy for DataManagerSteps {} |
| impl ::core::clone::Clone for DataManagerSteps { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for DataManagerSteps { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for DataManagerSteps { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for DataManagerSteps { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DataManagerSteps").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct DataSourceTypeConstants(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonNullDataSource: DataSourceTypeConstants = DataSourceTypeConstants(-1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonCurrentActivity: DataSourceTypeConstants = DataSourceTypeConstants(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonLogFiles: DataSourceTypeConstants = DataSourceTypeConstants(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonSqlLog: DataSourceTypeConstants = DataSourceTypeConstants(3i32); |
| impl ::core::marker::Copy for DataSourceTypeConstants {} |
| impl ::core::clone::Clone for DataSourceTypeConstants { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for DataSourceTypeConstants { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for DataSourceTypeConstants { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for DataSourceTypeConstants { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DataSourceTypeConstants").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct DisplayTypeConstants(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonLineGraph: DisplayTypeConstants = DisplayTypeConstants(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonHistogram: DisplayTypeConstants = DisplayTypeConstants(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonReport: DisplayTypeConstants = DisplayTypeConstants(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonChartArea: DisplayTypeConstants = DisplayTypeConstants(4i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonChartStackedArea: DisplayTypeConstants = DisplayTypeConstants(5i32); |
| impl ::core::marker::Copy for DisplayTypeConstants {} |
| impl ::core::clone::Clone for DisplayTypeConstants { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for DisplayTypeConstants { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for DisplayTypeConstants { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for DisplayTypeConstants { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DisplayTypeConstants").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct FileFormat(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaCommaSeparated: FileFormat = FileFormat(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaTabSeparated: FileFormat = FileFormat(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaSql: FileFormat = FileFormat(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaBinary: FileFormat = FileFormat(3i32); |
| impl ::core::marker::Copy for FileFormat {} |
| impl ::core::clone::Clone for FileFormat { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for FileFormat { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for FileFormat { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for FileFormat { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("FileFormat").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct FolderActionSteps(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaCreateCab: FolderActionSteps = FolderActionSteps(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaDeleteData: FolderActionSteps = FolderActionSteps(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaSendCab: FolderActionSteps = FolderActionSteps(4i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaDeleteCab: FolderActionSteps = FolderActionSteps(8i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaDeleteReport: FolderActionSteps = FolderActionSteps(16i32); |
| impl ::core::marker::Copy for FolderActionSteps {} |
| impl ::core::clone::Clone for FolderActionSteps { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for FolderActionSteps { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for FolderActionSteps { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for FolderActionSteps { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("FolderActionSteps").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PDH_DLL_VERSION(pub u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_CVERSION_WIN50: PDH_DLL_VERSION = PDH_DLL_VERSION(1280u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_VERSION: PDH_DLL_VERSION = PDH_DLL_VERSION(1283u32); |
| impl ::core::marker::Copy for PDH_DLL_VERSION {} |
| impl ::core::clone::Clone for PDH_DLL_VERSION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PDH_DLL_VERSION { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_DLL_VERSION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PDH_DLL_VERSION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PDH_DLL_VERSION").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PDH_FMT(pub u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_FMT_DOUBLE: PDH_FMT = PDH_FMT(512u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_FMT_LARGE: PDH_FMT = PDH_FMT(1024u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_FMT_LONG: PDH_FMT = PDH_FMT(256u32); |
| impl ::core::marker::Copy for PDH_FMT {} |
| impl ::core::clone::Clone for PDH_FMT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PDH_FMT { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_FMT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PDH_FMT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PDH_FMT").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PDH_LOG(pub u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_READ_ACCESS: PDH_LOG = PDH_LOG(65536u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_WRITE_ACCESS: PDH_LOG = PDH_LOG(131072u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_UPDATE_ACCESS: PDH_LOG = PDH_LOG(262144u32); |
| impl ::core::marker::Copy for PDH_LOG {} |
| impl ::core::clone::Clone for PDH_LOG { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PDH_LOG { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_LOG { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PDH_LOG { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PDH_LOG").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PDH_LOG_TYPE(pub u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_UNDEFINED: PDH_LOG_TYPE = PDH_LOG_TYPE(0u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_CSV: PDH_LOG_TYPE = PDH_LOG_TYPE(1u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_SQL: PDH_LOG_TYPE = PDH_LOG_TYPE(7u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_TSV: PDH_LOG_TYPE = PDH_LOG_TYPE(2u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_BINARY: PDH_LOG_TYPE = PDH_LOG_TYPE(8u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_LOG_TYPE_PERFMON: PDH_LOG_TYPE = PDH_LOG_TYPE(6u32); |
| impl ::core::marker::Copy for PDH_LOG_TYPE {} |
| impl ::core::clone::Clone for PDH_LOG_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PDH_LOG_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_LOG_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PDH_LOG_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PDH_LOG_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PDH_PATH_FLAGS(pub u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PATH_WBEM_RESULT: PDH_PATH_FLAGS = PDH_PATH_FLAGS(1u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PATH_WBEM_INPUT: PDH_PATH_FLAGS = PDH_PATH_FLAGS(2u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_PATH_WBEM_NONE: PDH_PATH_FLAGS = PDH_PATH_FLAGS(0u32); |
| impl ::core::marker::Copy for PDH_PATH_FLAGS {} |
| impl ::core::clone::Clone for PDH_PATH_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PDH_PATH_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_PATH_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PDH_PATH_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PDH_PATH_FLAGS").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PDH_SELECT_DATA_SOURCE_FLAGS(pub u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_FLAGS_FILE_BROWSER_ONLY: PDH_SELECT_DATA_SOURCE_FLAGS = PDH_SELECT_DATA_SOURCE_FLAGS(1u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PDH_FLAGS_NONE: PDH_SELECT_DATA_SOURCE_FLAGS = PDH_SELECT_DATA_SOURCE_FLAGS(0u32); |
| impl ::core::marker::Copy for PDH_SELECT_DATA_SOURCE_FLAGS {} |
| impl ::core::clone::Clone for PDH_SELECT_DATA_SOURCE_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PDH_SELECT_DATA_SOURCE_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_SELECT_DATA_SOURCE_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PDH_SELECT_DATA_SOURCE_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PDH_SELECT_DATA_SOURCE_FLAGS").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PERF_COUNTER_AGGREGATE_FUNC(pub u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_AGGREGATE_UNDEFINED: PERF_COUNTER_AGGREGATE_FUNC = PERF_COUNTER_AGGREGATE_FUNC(0u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_AGGREGATE_TOTAL: PERF_COUNTER_AGGREGATE_FUNC = PERF_COUNTER_AGGREGATE_FUNC(1u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_AGGREGATE_AVG: PERF_COUNTER_AGGREGATE_FUNC = PERF_COUNTER_AGGREGATE_FUNC(2u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_AGGREGATE_MIN: PERF_COUNTER_AGGREGATE_FUNC = PERF_COUNTER_AGGREGATE_FUNC(3u32); |
| impl ::core::marker::Copy for PERF_COUNTER_AGGREGATE_FUNC {} |
| impl ::core::clone::Clone for PERF_COUNTER_AGGREGATE_FUNC { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PERF_COUNTER_AGGREGATE_FUNC { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTER_AGGREGATE_FUNC { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PERF_COUNTER_AGGREGATE_FUNC { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PERF_COUNTER_AGGREGATE_FUNC").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PERF_DETAIL(pub u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DETAIL_NOVICE: PERF_DETAIL = PERF_DETAIL(100u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DETAIL_ADVANCED: PERF_DETAIL = PERF_DETAIL(200u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DETAIL_EXPERT: PERF_DETAIL = PERF_DETAIL(300u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_DETAIL_WIZARD: PERF_DETAIL = PERF_DETAIL(400u32); |
| impl ::core::marker::Copy for PERF_DETAIL {} |
| impl ::core::clone::Clone for PERF_DETAIL { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PERF_DETAIL { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_DETAIL { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PERF_DETAIL { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PERF_DETAIL").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PerfCounterDataType(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_ERROR_RETURN: PerfCounterDataType = PerfCounterDataType(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_SINGLE_COUNTER: PerfCounterDataType = PerfCounterDataType(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_MULTIPLE_COUNTERS: PerfCounterDataType = PerfCounterDataType(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_MULTIPLE_INSTANCES: PerfCounterDataType = PerfCounterDataType(4i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_COUNTERSET: PerfCounterDataType = PerfCounterDataType(6i32); |
| impl ::core::marker::Copy for PerfCounterDataType {} |
| impl ::core::clone::Clone for PerfCounterDataType { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PerfCounterDataType { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PerfCounterDataType { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PerfCounterDataType { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PerfCounterDataType").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PerfRegInfoType(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_COUNTERSET_STRUCT: PerfRegInfoType = PerfRegInfoType(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_COUNTER_STRUCT: PerfRegInfoType = PerfRegInfoType(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_COUNTERSET_NAME_STRING: PerfRegInfoType = PerfRegInfoType(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_COUNTERSET_HELP_STRING: PerfRegInfoType = PerfRegInfoType(4i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_COUNTER_NAME_STRINGS: PerfRegInfoType = PerfRegInfoType(5i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_COUNTER_HELP_STRINGS: PerfRegInfoType = PerfRegInfoType(6i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_PROVIDER_NAME: PerfRegInfoType = PerfRegInfoType(7i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_PROVIDER_GUID: PerfRegInfoType = PerfRegInfoType(8i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_COUNTERSET_ENGLISH_NAME: PerfRegInfoType = PerfRegInfoType(9i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const PERF_REG_COUNTER_ENGLISH_NAMES: PerfRegInfoType = PerfRegInfoType(10i32); |
| impl ::core::marker::Copy for PerfRegInfoType {} |
| impl ::core::clone::Clone for PerfRegInfoType { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PerfRegInfoType { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PerfRegInfoType { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PerfRegInfoType { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PerfRegInfoType").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct REAL_TIME_DATA_SOURCE_ID_FLAGS(pub u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const DATA_SOURCE_REGISTRY: REAL_TIME_DATA_SOURCE_ID_FLAGS = REAL_TIME_DATA_SOURCE_ID_FLAGS(1u32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const DATA_SOURCE_WBEM: REAL_TIME_DATA_SOURCE_ID_FLAGS = REAL_TIME_DATA_SOURCE_ID_FLAGS(4u32); |
| impl ::core::marker::Copy for REAL_TIME_DATA_SOURCE_ID_FLAGS {} |
| impl ::core::clone::Clone for REAL_TIME_DATA_SOURCE_ID_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for REAL_TIME_DATA_SOURCE_ID_FLAGS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for REAL_TIME_DATA_SOURCE_ID_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for REAL_TIME_DATA_SOURCE_ID_FLAGS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("REAL_TIME_DATA_SOURCE_ID_FLAGS").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct ReportValueTypeConstants(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonDefaultValue: ReportValueTypeConstants = ReportValueTypeConstants(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonCurrentValue: ReportValueTypeConstants = ReportValueTypeConstants(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonAverage: ReportValueTypeConstants = ReportValueTypeConstants(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonMinimum: ReportValueTypeConstants = ReportValueTypeConstants(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonMaximum: ReportValueTypeConstants = ReportValueTypeConstants(4i32); |
| impl ::core::marker::Copy for ReportValueTypeConstants {} |
| impl ::core::clone::Clone for ReportValueTypeConstants { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for ReportValueTypeConstants { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for ReportValueTypeConstants { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for ReportValueTypeConstants { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ReportValueTypeConstants").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct ResourcePolicy(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaDeleteLargest: ResourcePolicy = ResourcePolicy(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaDeleteOldest: ResourcePolicy = ResourcePolicy(1i32); |
| impl ::core::marker::Copy for ResourcePolicy {} |
| impl ::core::clone::Clone for ResourcePolicy { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for ResourcePolicy { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for ResourcePolicy { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for ResourcePolicy { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ResourcePolicy").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct StreamMode(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaFile: StreamMode = StreamMode(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaRealTime: StreamMode = StreamMode(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaBoth: StreamMode = StreamMode(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaBuffering: StreamMode = StreamMode(4i32); |
| impl ::core::marker::Copy for StreamMode {} |
| impl ::core::clone::Clone for StreamMode { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for StreamMode { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for StreamMode { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for StreamMode { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("StreamMode").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct SysmonBatchReason(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonBatchNone: SysmonBatchReason = SysmonBatchReason(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonBatchAddFiles: SysmonBatchReason = SysmonBatchReason(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonBatchAddCounters: SysmonBatchReason = SysmonBatchReason(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonBatchAddFilesAutoCounters: SysmonBatchReason = SysmonBatchReason(3i32); |
| impl ::core::marker::Copy for SysmonBatchReason {} |
| impl ::core::clone::Clone for SysmonBatchReason { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for SysmonBatchReason { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for SysmonBatchReason { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for SysmonBatchReason { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("SysmonBatchReason").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct SysmonDataType(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonDataAvg: SysmonDataType = SysmonDataType(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonDataMin: SysmonDataType = SysmonDataType(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonDataMax: SysmonDataType = SysmonDataType(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonDataTime: SysmonDataType = SysmonDataType(4i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonDataCount: SysmonDataType = SysmonDataType(5i32); |
| impl ::core::marker::Copy for SysmonDataType {} |
| impl ::core::clone::Clone for SysmonDataType { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for SysmonDataType { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for SysmonDataType { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for SysmonDataType { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("SysmonDataType").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct SysmonFileType(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonFileHtml: SysmonFileType = SysmonFileType(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonFileReport: SysmonFileType = SysmonFileType(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonFileCsv: SysmonFileType = SysmonFileType(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonFileTsv: SysmonFileType = SysmonFileType(4i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonFileBlg: SysmonFileType = SysmonFileType(5i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonFileRetiredBlg: SysmonFileType = SysmonFileType(6i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const sysmonFileGif: SysmonFileType = SysmonFileType(7i32); |
| impl ::core::marker::Copy for SysmonFileType {} |
| impl ::core::clone::Clone for SysmonFileType { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for SysmonFileType { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for SysmonFileType { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for SysmonFileType { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("SysmonFileType").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct ValueMapType(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaIndex: ValueMapType = ValueMapType(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaFlag: ValueMapType = ValueMapType(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaFlagArray: ValueMapType = ValueMapType(3i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaValidation: ValueMapType = ValueMapType(4i32); |
| impl ::core::marker::Copy for ValueMapType {} |
| impl ::core::clone::Clone for ValueMapType { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for ValueMapType { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for ValueMapType { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for ValueMapType { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ValueMapType").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WeekDays(pub i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaRunOnce: WeekDays = WeekDays(0i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaSunday: WeekDays = WeekDays(1i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaMonday: WeekDays = WeekDays(2i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaTuesday: WeekDays = WeekDays(4i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaWednesday: WeekDays = WeekDays(8i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaThursday: WeekDays = WeekDays(16i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaFriday: WeekDays = WeekDays(32i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaSaturday: WeekDays = WeekDays(64i32); |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub const plaEveryday: WeekDays = WeekDays(127i32); |
| impl ::core::marker::Copy for WeekDays {} |
| impl ::core::clone::Clone for WeekDays { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WeekDays { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WeekDays { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WeekDays { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WeekDays").field(&self.0).finish() |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_BROWSE_DLG_CONFIG_A { |
| pub _bitfield: u32, |
| pub hWndOwner: super::super::Foundation::HWND, |
| pub szDataSource: ::windows::core::PSTR, |
| pub szReturnPathBuffer: ::windows::core::PSTR, |
| pub cchReturnPathLength: u32, |
| pub pCallBack: CounterPathCallBack, |
| pub dwCallBackArg: usize, |
| pub CallBackStatus: i32, |
| pub dwDefaultDetailLevel: PERF_DETAIL, |
| pub szDialogBoxCaption: ::windows::core::PSTR, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_BROWSE_DLG_CONFIG_A {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_BROWSE_DLG_CONFIG_A { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_BROWSE_DLG_CONFIG_A { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_BROWSE_DLG_CONFIG_A").field("_bitfield", &self._bitfield).field("hWndOwner", &self.hWndOwner).field("szDataSource", &self.szDataSource).field("szReturnPathBuffer", &self.szReturnPathBuffer).field("cchReturnPathLength", &self.cchReturnPathLength).field("dwCallBackArg", &self.dwCallBackArg).field("CallBackStatus", &self.CallBackStatus).field("dwDefaultDetailLevel", &self.dwDefaultDetailLevel).field("szDialogBoxCaption", &self.szDialogBoxCaption).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_BROWSE_DLG_CONFIG_A { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_BROWSE_DLG_CONFIG_A { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_BROWSE_DLG_CONFIG_HA { |
| pub _bitfield: u32, |
| pub hWndOwner: super::super::Foundation::HWND, |
| pub hDataSource: isize, |
| pub szReturnPathBuffer: ::windows::core::PSTR, |
| pub cchReturnPathLength: u32, |
| pub pCallBack: CounterPathCallBack, |
| pub dwCallBackArg: usize, |
| pub CallBackStatus: i32, |
| pub dwDefaultDetailLevel: PERF_DETAIL, |
| pub szDialogBoxCaption: ::windows::core::PSTR, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_BROWSE_DLG_CONFIG_HA {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_BROWSE_DLG_CONFIG_HA { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_BROWSE_DLG_CONFIG_HA { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_BROWSE_DLG_CONFIG_HA").field("_bitfield", &self._bitfield).field("hWndOwner", &self.hWndOwner).field("hDataSource", &self.hDataSource).field("szReturnPathBuffer", &self.szReturnPathBuffer).field("cchReturnPathLength", &self.cchReturnPathLength).field("dwCallBackArg", &self.dwCallBackArg).field("CallBackStatus", &self.CallBackStatus).field("dwDefaultDetailLevel", &self.dwDefaultDetailLevel).field("szDialogBoxCaption", &self.szDialogBoxCaption).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_BROWSE_DLG_CONFIG_HA { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_BROWSE_DLG_CONFIG_HA { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_BROWSE_DLG_CONFIG_HW { |
| pub _bitfield: u32, |
| pub hWndOwner: super::super::Foundation::HWND, |
| pub hDataSource: isize, |
| pub szReturnPathBuffer: ::windows::core::PWSTR, |
| pub cchReturnPathLength: u32, |
| pub pCallBack: CounterPathCallBack, |
| pub dwCallBackArg: usize, |
| pub CallBackStatus: i32, |
| pub dwDefaultDetailLevel: PERF_DETAIL, |
| pub szDialogBoxCaption: ::windows::core::PWSTR, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_BROWSE_DLG_CONFIG_HW {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_BROWSE_DLG_CONFIG_HW { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_BROWSE_DLG_CONFIG_HW { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_BROWSE_DLG_CONFIG_HW").field("_bitfield", &self._bitfield).field("hWndOwner", &self.hWndOwner).field("hDataSource", &self.hDataSource).field("szReturnPathBuffer", &self.szReturnPathBuffer).field("cchReturnPathLength", &self.cchReturnPathLength).field("dwCallBackArg", &self.dwCallBackArg).field("CallBackStatus", &self.CallBackStatus).field("dwDefaultDetailLevel", &self.dwDefaultDetailLevel).field("szDialogBoxCaption", &self.szDialogBoxCaption).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_BROWSE_DLG_CONFIG_HW { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_BROWSE_DLG_CONFIG_HW { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_BROWSE_DLG_CONFIG_W { |
| pub _bitfield: u32, |
| pub hWndOwner: super::super::Foundation::HWND, |
| pub szDataSource: ::windows::core::PWSTR, |
| pub szReturnPathBuffer: ::windows::core::PWSTR, |
| pub cchReturnPathLength: u32, |
| pub pCallBack: CounterPathCallBack, |
| pub dwCallBackArg: usize, |
| pub CallBackStatus: i32, |
| pub dwDefaultDetailLevel: PERF_DETAIL, |
| pub szDialogBoxCaption: ::windows::core::PWSTR, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_BROWSE_DLG_CONFIG_W {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_BROWSE_DLG_CONFIG_W { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_BROWSE_DLG_CONFIG_W { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_BROWSE_DLG_CONFIG_W").field("_bitfield", &self._bitfield).field("hWndOwner", &self.hWndOwner).field("szDataSource", &self.szDataSource).field("szReturnPathBuffer", &self.szReturnPathBuffer).field("cchReturnPathLength", &self.cchReturnPathLength).field("dwCallBackArg", &self.dwCallBackArg).field("CallBackStatus", &self.CallBackStatus).field("dwDefaultDetailLevel", &self.dwDefaultDetailLevel).field("szDialogBoxCaption", &self.szDialogBoxCaption).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_BROWSE_DLG_CONFIG_W { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_BROWSE_DLG_CONFIG_W { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_COUNTER_INFO_A { |
| pub dwLength: u32, |
| pub dwType: u32, |
| pub CVersion: u32, |
| pub CStatus: u32, |
| pub lScale: i32, |
| pub lDefaultScale: i32, |
| pub dwUserData: usize, |
| pub dwQueryUserData: usize, |
| pub szFullPath: ::windows::core::PSTR, |
| pub Anonymous: PDH_COUNTER_INFO_A_0, |
| pub szExplainText: ::windows::core::PSTR, |
| pub DataBuffer: [u32; 1], |
| } |
| impl ::core::marker::Copy for PDH_COUNTER_INFO_A {} |
| impl ::core::clone::Clone for PDH_COUNTER_INFO_A { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_COUNTER_INFO_A { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PDH_COUNTER_INFO_A { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub union PDH_COUNTER_INFO_A_0 { |
| pub DataItemPath: PDH_DATA_ITEM_PATH_ELEMENTS_A, |
| pub CounterPath: PDH_COUNTER_PATH_ELEMENTS_A, |
| pub Anonymous: PDH_COUNTER_INFO_A_0_0, |
| } |
| impl ::core::marker::Copy for PDH_COUNTER_INFO_A_0 {} |
| impl ::core::clone::Clone for PDH_COUNTER_INFO_A_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_COUNTER_INFO_A_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PDH_COUNTER_INFO_A_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_COUNTER_INFO_A_0_0 { |
| pub szMachineName: ::windows::core::PSTR, |
| pub szObjectName: ::windows::core::PSTR, |
| pub szInstanceName: ::windows::core::PSTR, |
| pub szParentInstance: ::windows::core::PSTR, |
| pub dwInstanceIndex: u32, |
| pub szCounterName: ::windows::core::PSTR, |
| } |
| impl ::core::marker::Copy for PDH_COUNTER_INFO_A_0_0 {} |
| impl ::core::clone::Clone for PDH_COUNTER_INFO_A_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PDH_COUNTER_INFO_A_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_COUNTER_INFO_A_0_0").field("szMachineName", &self.szMachineName).field("szObjectName", &self.szObjectName).field("szInstanceName", &self.szInstanceName).field("szParentInstance", &self.szParentInstance).field("dwInstanceIndex", &self.dwInstanceIndex).field("szCounterName", &self.szCounterName).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_COUNTER_INFO_A_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PDH_COUNTER_INFO_A_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.szMachineName == other.szMachineName && self.szObjectName == other.szObjectName && self.szInstanceName == other.szInstanceName && self.szParentInstance == other.szParentInstance && self.dwInstanceIndex == other.dwInstanceIndex && self.szCounterName == other.szCounterName |
| } |
| } |
| impl ::core::cmp::Eq for PDH_COUNTER_INFO_A_0_0 {} |
| impl ::core::default::Default for PDH_COUNTER_INFO_A_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_COUNTER_INFO_W { |
| pub dwLength: u32, |
| pub dwType: u32, |
| pub CVersion: u32, |
| pub CStatus: u32, |
| pub lScale: i32, |
| pub lDefaultScale: i32, |
| pub dwUserData: usize, |
| pub dwQueryUserData: usize, |
| pub szFullPath: ::windows::core::PWSTR, |
| pub Anonymous: PDH_COUNTER_INFO_W_0, |
| pub szExplainText: ::windows::core::PWSTR, |
| pub DataBuffer: [u32; 1], |
| } |
| impl ::core::marker::Copy for PDH_COUNTER_INFO_W {} |
| impl ::core::clone::Clone for PDH_COUNTER_INFO_W { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_COUNTER_INFO_W { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PDH_COUNTER_INFO_W { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub union PDH_COUNTER_INFO_W_0 { |
| pub DataItemPath: PDH_DATA_ITEM_PATH_ELEMENTS_W, |
| pub CounterPath: PDH_COUNTER_PATH_ELEMENTS_W, |
| pub Anonymous: PDH_COUNTER_INFO_W_0_0, |
| } |
| impl ::core::marker::Copy for PDH_COUNTER_INFO_W_0 {} |
| impl ::core::clone::Clone for PDH_COUNTER_INFO_W_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_COUNTER_INFO_W_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PDH_COUNTER_INFO_W_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_COUNTER_INFO_W_0_0 { |
| pub szMachineName: ::windows::core::PWSTR, |
| pub szObjectName: ::windows::core::PWSTR, |
| pub szInstanceName: ::windows::core::PWSTR, |
| pub szParentInstance: ::windows::core::PWSTR, |
| pub dwInstanceIndex: u32, |
| pub szCounterName: ::windows::core::PWSTR, |
| } |
| impl ::core::marker::Copy for PDH_COUNTER_INFO_W_0_0 {} |
| impl ::core::clone::Clone for PDH_COUNTER_INFO_W_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PDH_COUNTER_INFO_W_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_COUNTER_INFO_W_0_0").field("szMachineName", &self.szMachineName).field("szObjectName", &self.szObjectName).field("szInstanceName", &self.szInstanceName).field("szParentInstance", &self.szParentInstance).field("dwInstanceIndex", &self.dwInstanceIndex).field("szCounterName", &self.szCounterName).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_COUNTER_INFO_W_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PDH_COUNTER_INFO_W_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.szMachineName == other.szMachineName && self.szObjectName == other.szObjectName && self.szInstanceName == other.szInstanceName && self.szParentInstance == other.szParentInstance && self.dwInstanceIndex == other.dwInstanceIndex && self.szCounterName == other.szCounterName |
| } |
| } |
| impl ::core::cmp::Eq for PDH_COUNTER_INFO_W_0_0 {} |
| impl ::core::default::Default for PDH_COUNTER_INFO_W_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_COUNTER_PATH_ELEMENTS_A { |
| pub szMachineName: ::windows::core::PSTR, |
| pub szObjectName: ::windows::core::PSTR, |
| pub szInstanceName: ::windows::core::PSTR, |
| pub szParentInstance: ::windows::core::PSTR, |
| pub dwInstanceIndex: u32, |
| pub szCounterName: ::windows::core::PSTR, |
| } |
| impl ::core::marker::Copy for PDH_COUNTER_PATH_ELEMENTS_A {} |
| impl ::core::clone::Clone for PDH_COUNTER_PATH_ELEMENTS_A { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PDH_COUNTER_PATH_ELEMENTS_A { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_COUNTER_PATH_ELEMENTS_A").field("szMachineName", &self.szMachineName).field("szObjectName", &self.szObjectName).field("szInstanceName", &self.szInstanceName).field("szParentInstance", &self.szParentInstance).field("dwInstanceIndex", &self.dwInstanceIndex).field("szCounterName", &self.szCounterName).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_COUNTER_PATH_ELEMENTS_A { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PDH_COUNTER_PATH_ELEMENTS_A { |
| fn eq(&self, other: &Self) -> bool { |
| self.szMachineName == other.szMachineName && self.szObjectName == other.szObjectName && self.szInstanceName == other.szInstanceName && self.szParentInstance == other.szParentInstance && self.dwInstanceIndex == other.dwInstanceIndex && self.szCounterName == other.szCounterName |
| } |
| } |
| impl ::core::cmp::Eq for PDH_COUNTER_PATH_ELEMENTS_A {} |
| impl ::core::default::Default for PDH_COUNTER_PATH_ELEMENTS_A { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_COUNTER_PATH_ELEMENTS_W { |
| pub szMachineName: ::windows::core::PWSTR, |
| pub szObjectName: ::windows::core::PWSTR, |
| pub szInstanceName: ::windows::core::PWSTR, |
| pub szParentInstance: ::windows::core::PWSTR, |
| pub dwInstanceIndex: u32, |
| pub szCounterName: ::windows::core::PWSTR, |
| } |
| impl ::core::marker::Copy for PDH_COUNTER_PATH_ELEMENTS_W {} |
| impl ::core::clone::Clone for PDH_COUNTER_PATH_ELEMENTS_W { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PDH_COUNTER_PATH_ELEMENTS_W { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_COUNTER_PATH_ELEMENTS_W").field("szMachineName", &self.szMachineName).field("szObjectName", &self.szObjectName).field("szInstanceName", &self.szInstanceName).field("szParentInstance", &self.szParentInstance).field("dwInstanceIndex", &self.dwInstanceIndex).field("szCounterName", &self.szCounterName).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_COUNTER_PATH_ELEMENTS_W { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PDH_COUNTER_PATH_ELEMENTS_W { |
| fn eq(&self, other: &Self) -> bool { |
| self.szMachineName == other.szMachineName && self.szObjectName == other.szObjectName && self.szInstanceName == other.szInstanceName && self.szParentInstance == other.szParentInstance && self.dwInstanceIndex == other.dwInstanceIndex && self.szCounterName == other.szCounterName |
| } |
| } |
| impl ::core::cmp::Eq for PDH_COUNTER_PATH_ELEMENTS_W {} |
| impl ::core::default::Default for PDH_COUNTER_PATH_ELEMENTS_W { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_DATA_ITEM_PATH_ELEMENTS_A { |
| pub szMachineName: ::windows::core::PSTR, |
| pub ObjectGUID: ::windows::core::GUID, |
| pub dwItemId: u32, |
| pub szInstanceName: ::windows::core::PSTR, |
| } |
| impl ::core::marker::Copy for PDH_DATA_ITEM_PATH_ELEMENTS_A {} |
| impl ::core::clone::Clone for PDH_DATA_ITEM_PATH_ELEMENTS_A { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PDH_DATA_ITEM_PATH_ELEMENTS_A { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_DATA_ITEM_PATH_ELEMENTS_A").field("szMachineName", &self.szMachineName).field("ObjectGUID", &self.ObjectGUID).field("dwItemId", &self.dwItemId).field("szInstanceName", &self.szInstanceName).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_DATA_ITEM_PATH_ELEMENTS_A { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PDH_DATA_ITEM_PATH_ELEMENTS_A { |
| fn eq(&self, other: &Self) -> bool { |
| self.szMachineName == other.szMachineName && self.ObjectGUID == other.ObjectGUID && self.dwItemId == other.dwItemId && self.szInstanceName == other.szInstanceName |
| } |
| } |
| impl ::core::cmp::Eq for PDH_DATA_ITEM_PATH_ELEMENTS_A {} |
| impl ::core::default::Default for PDH_DATA_ITEM_PATH_ELEMENTS_A { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_DATA_ITEM_PATH_ELEMENTS_W { |
| pub szMachineName: ::windows::core::PWSTR, |
| pub ObjectGUID: ::windows::core::GUID, |
| pub dwItemId: u32, |
| pub szInstanceName: ::windows::core::PWSTR, |
| } |
| impl ::core::marker::Copy for PDH_DATA_ITEM_PATH_ELEMENTS_W {} |
| impl ::core::clone::Clone for PDH_DATA_ITEM_PATH_ELEMENTS_W { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PDH_DATA_ITEM_PATH_ELEMENTS_W { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_DATA_ITEM_PATH_ELEMENTS_W").field("szMachineName", &self.szMachineName).field("ObjectGUID", &self.ObjectGUID).field("dwItemId", &self.dwItemId).field("szInstanceName", &self.szInstanceName).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_DATA_ITEM_PATH_ELEMENTS_W { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PDH_DATA_ITEM_PATH_ELEMENTS_W { |
| fn eq(&self, other: &Self) -> bool { |
| self.szMachineName == other.szMachineName && self.ObjectGUID == other.ObjectGUID && self.dwItemId == other.dwItemId && self.szInstanceName == other.szInstanceName |
| } |
| } |
| impl ::core::cmp::Eq for PDH_DATA_ITEM_PATH_ELEMENTS_W {} |
| impl ::core::default::Default for PDH_DATA_ITEM_PATH_ELEMENTS_W { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_FMT_COUNTERVALUE { |
| pub CStatus: u32, |
| pub Anonymous: PDH_FMT_COUNTERVALUE_0, |
| } |
| impl ::core::marker::Copy for PDH_FMT_COUNTERVALUE {} |
| impl ::core::clone::Clone for PDH_FMT_COUNTERVALUE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_FMT_COUNTERVALUE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PDH_FMT_COUNTERVALUE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub union PDH_FMT_COUNTERVALUE_0 { |
| pub longValue: i32, |
| pub doubleValue: f64, |
| pub largeValue: i64, |
| pub AnsiStringValue: ::windows::core::PCSTR, |
| pub WideStringValue: ::windows::core::PCWSTR, |
| } |
| impl ::core::marker::Copy for PDH_FMT_COUNTERVALUE_0 {} |
| impl ::core::clone::Clone for PDH_FMT_COUNTERVALUE_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_FMT_COUNTERVALUE_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PDH_FMT_COUNTERVALUE_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_FMT_COUNTERVALUE_ITEM_A { |
| pub szName: ::windows::core::PSTR, |
| pub FmtValue: PDH_FMT_COUNTERVALUE, |
| } |
| impl ::core::marker::Copy for PDH_FMT_COUNTERVALUE_ITEM_A {} |
| impl ::core::clone::Clone for PDH_FMT_COUNTERVALUE_ITEM_A { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_FMT_COUNTERVALUE_ITEM_A { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PDH_FMT_COUNTERVALUE_ITEM_A { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_FMT_COUNTERVALUE_ITEM_W { |
| pub szName: ::windows::core::PWSTR, |
| pub FmtValue: PDH_FMT_COUNTERVALUE, |
| } |
| impl ::core::marker::Copy for PDH_FMT_COUNTERVALUE_ITEM_W {} |
| impl ::core::clone::Clone for PDH_FMT_COUNTERVALUE_ITEM_W { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_FMT_COUNTERVALUE_ITEM_W { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PDH_FMT_COUNTERVALUE_ITEM_W { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_LOG_SERVICE_QUERY_INFO_A { |
| pub dwSize: u32, |
| pub dwFlags: u32, |
| pub dwLogQuota: u32, |
| pub szLogFileCaption: ::windows::core::PSTR, |
| pub szDefaultDir: ::windows::core::PSTR, |
| pub szBaseFileName: ::windows::core::PSTR, |
| pub dwFileType: u32, |
| pub dwReserved: u32, |
| pub Anonymous: PDH_LOG_SERVICE_QUERY_INFO_A_0, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_A {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_A { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_LOG_SERVICE_QUERY_INFO_A { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_LOG_SERVICE_QUERY_INFO_A { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub union PDH_LOG_SERVICE_QUERY_INFO_A_0 { |
| pub Anonymous1: PDH_LOG_SERVICE_QUERY_INFO_A_0_0, |
| pub Anonymous2: PDH_LOG_SERVICE_QUERY_INFO_A_0_1, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_A_0 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_A_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_LOG_SERVICE_QUERY_INFO_A_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_LOG_SERVICE_QUERY_INFO_A_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_LOG_SERVICE_QUERY_INFO_A_0_0 { |
| pub PdlAutoNameInterval: u32, |
| pub PdlAutoNameUnits: u32, |
| pub PdlCommandFilename: ::windows::core::PSTR, |
| pub PdlCounterList: ::windows::core::PSTR, |
| pub PdlAutoNameFormat: u32, |
| pub PdlSampleInterval: u32, |
| pub PdlLogStartTime: super::super::Foundation::FILETIME, |
| pub PdlLogEndTime: super::super::Foundation::FILETIME, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_A_0_0 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_A_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_LOG_SERVICE_QUERY_INFO_A_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_LOG_SERVICE_QUERY_INFO_A_0_0").field("PdlAutoNameInterval", &self.PdlAutoNameInterval).field("PdlAutoNameUnits", &self.PdlAutoNameUnits).field("PdlCommandFilename", &self.PdlCommandFilename).field("PdlCounterList", &self.PdlCounterList).field("PdlAutoNameFormat", &self.PdlAutoNameFormat).field("PdlSampleInterval", &self.PdlSampleInterval).field("PdlLogStartTime", &self.PdlLogStartTime).field("PdlLogEndTime", &self.PdlLogEndTime).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_LOG_SERVICE_QUERY_INFO_A_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for PDH_LOG_SERVICE_QUERY_INFO_A_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.PdlAutoNameInterval == other.PdlAutoNameInterval && self.PdlAutoNameUnits == other.PdlAutoNameUnits && self.PdlCommandFilename == other.PdlCommandFilename && self.PdlCounterList == other.PdlCounterList && self.PdlAutoNameFormat == other.PdlAutoNameFormat && self.PdlSampleInterval == other.PdlSampleInterval && self.PdlLogStartTime == other.PdlLogStartTime && self.PdlLogEndTime == other.PdlLogEndTime |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for PDH_LOG_SERVICE_QUERY_INFO_A_0_0 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_LOG_SERVICE_QUERY_INFO_A_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_LOG_SERVICE_QUERY_INFO_A_0_1 { |
| pub TlNumberOfBuffers: u32, |
| pub TlMinimumBuffers: u32, |
| pub TlMaximumBuffers: u32, |
| pub TlFreeBuffers: u32, |
| pub TlBufferSize: u32, |
| pub TlEventsLost: u32, |
| pub TlLoggerThreadId: u32, |
| pub TlBuffersWritten: u32, |
| pub TlLogHandle: u32, |
| pub TlLogFileName: ::windows::core::PSTR, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_A_0_1 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_A_0_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_LOG_SERVICE_QUERY_INFO_A_0_1 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_LOG_SERVICE_QUERY_INFO_A_0_1") |
| .field("TlNumberOfBuffers", &self.TlNumberOfBuffers) |
| .field("TlMinimumBuffers", &self.TlMinimumBuffers) |
| .field("TlMaximumBuffers", &self.TlMaximumBuffers) |
| .field("TlFreeBuffers", &self.TlFreeBuffers) |
| .field("TlBufferSize", &self.TlBufferSize) |
| .field("TlEventsLost", &self.TlEventsLost) |
| .field("TlLoggerThreadId", &self.TlLoggerThreadId) |
| .field("TlBuffersWritten", &self.TlBuffersWritten) |
| .field("TlLogHandle", &self.TlLogHandle) |
| .field("TlLogFileName", &self.TlLogFileName) |
| .finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_LOG_SERVICE_QUERY_INFO_A_0_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for PDH_LOG_SERVICE_QUERY_INFO_A_0_1 { |
| fn eq(&self, other: &Self) -> bool { |
| self.TlNumberOfBuffers == other.TlNumberOfBuffers && self.TlMinimumBuffers == other.TlMinimumBuffers && self.TlMaximumBuffers == other.TlMaximumBuffers && self.TlFreeBuffers == other.TlFreeBuffers && self.TlBufferSize == other.TlBufferSize && self.TlEventsLost == other.TlEventsLost && self.TlLoggerThreadId == other.TlLoggerThreadId && self.TlBuffersWritten == other.TlBuffersWritten && self.TlLogHandle == other.TlLogHandle && self.TlLogFileName == other.TlLogFileName |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for PDH_LOG_SERVICE_QUERY_INFO_A_0_1 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_LOG_SERVICE_QUERY_INFO_A_0_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_LOG_SERVICE_QUERY_INFO_W { |
| pub dwSize: u32, |
| pub dwFlags: u32, |
| pub dwLogQuota: u32, |
| pub szLogFileCaption: ::windows::core::PWSTR, |
| pub szDefaultDir: ::windows::core::PWSTR, |
| pub szBaseFileName: ::windows::core::PWSTR, |
| pub dwFileType: u32, |
| pub dwReserved: u32, |
| pub Anonymous: PDH_LOG_SERVICE_QUERY_INFO_W_0, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_W {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_W { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_LOG_SERVICE_QUERY_INFO_W { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_LOG_SERVICE_QUERY_INFO_W { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub union PDH_LOG_SERVICE_QUERY_INFO_W_0 { |
| pub Anonymous1: PDH_LOG_SERVICE_QUERY_INFO_W_0_0, |
| pub Anonymous2: PDH_LOG_SERVICE_QUERY_INFO_W_0_1, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_W_0 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_W_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_LOG_SERVICE_QUERY_INFO_W_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_LOG_SERVICE_QUERY_INFO_W_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_LOG_SERVICE_QUERY_INFO_W_0_0 { |
| pub PdlAutoNameInterval: u32, |
| pub PdlAutoNameUnits: u32, |
| pub PdlCommandFilename: ::windows::core::PWSTR, |
| pub PdlCounterList: ::windows::core::PWSTR, |
| pub PdlAutoNameFormat: u32, |
| pub PdlSampleInterval: u32, |
| pub PdlLogStartTime: super::super::Foundation::FILETIME, |
| pub PdlLogEndTime: super::super::Foundation::FILETIME, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_W_0_0 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_W_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_LOG_SERVICE_QUERY_INFO_W_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_LOG_SERVICE_QUERY_INFO_W_0_0").field("PdlAutoNameInterval", &self.PdlAutoNameInterval).field("PdlAutoNameUnits", &self.PdlAutoNameUnits).field("PdlCommandFilename", &self.PdlCommandFilename).field("PdlCounterList", &self.PdlCounterList).field("PdlAutoNameFormat", &self.PdlAutoNameFormat).field("PdlSampleInterval", &self.PdlSampleInterval).field("PdlLogStartTime", &self.PdlLogStartTime).field("PdlLogEndTime", &self.PdlLogEndTime).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_LOG_SERVICE_QUERY_INFO_W_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for PDH_LOG_SERVICE_QUERY_INFO_W_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.PdlAutoNameInterval == other.PdlAutoNameInterval && self.PdlAutoNameUnits == other.PdlAutoNameUnits && self.PdlCommandFilename == other.PdlCommandFilename && self.PdlCounterList == other.PdlCounterList && self.PdlAutoNameFormat == other.PdlAutoNameFormat && self.PdlSampleInterval == other.PdlSampleInterval && self.PdlLogStartTime == other.PdlLogStartTime && self.PdlLogEndTime == other.PdlLogEndTime |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for PDH_LOG_SERVICE_QUERY_INFO_W_0_0 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_LOG_SERVICE_QUERY_INFO_W_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_LOG_SERVICE_QUERY_INFO_W_0_1 { |
| pub TlNumberOfBuffers: u32, |
| pub TlMinimumBuffers: u32, |
| pub TlMaximumBuffers: u32, |
| pub TlFreeBuffers: u32, |
| pub TlBufferSize: u32, |
| pub TlEventsLost: u32, |
| pub TlLoggerThreadId: u32, |
| pub TlBuffersWritten: u32, |
| pub TlLogHandle: u32, |
| pub TlLogFileName: ::windows::core::PWSTR, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_W_0_1 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_W_0_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_LOG_SERVICE_QUERY_INFO_W_0_1 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_LOG_SERVICE_QUERY_INFO_W_0_1") |
| .field("TlNumberOfBuffers", &self.TlNumberOfBuffers) |
| .field("TlMinimumBuffers", &self.TlMinimumBuffers) |
| .field("TlMaximumBuffers", &self.TlMaximumBuffers) |
| .field("TlFreeBuffers", &self.TlFreeBuffers) |
| .field("TlBufferSize", &self.TlBufferSize) |
| .field("TlEventsLost", &self.TlEventsLost) |
| .field("TlLoggerThreadId", &self.TlLoggerThreadId) |
| .field("TlBuffersWritten", &self.TlBuffersWritten) |
| .field("TlLogHandle", &self.TlLogHandle) |
| .field("TlLogFileName", &self.TlLogFileName) |
| .finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_LOG_SERVICE_QUERY_INFO_W_0_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for PDH_LOG_SERVICE_QUERY_INFO_W_0_1 { |
| fn eq(&self, other: &Self) -> bool { |
| self.TlNumberOfBuffers == other.TlNumberOfBuffers && self.TlMinimumBuffers == other.TlMinimumBuffers && self.TlMaximumBuffers == other.TlMaximumBuffers && self.TlFreeBuffers == other.TlFreeBuffers && self.TlBufferSize == other.TlBufferSize && self.TlEventsLost == other.TlEventsLost && self.TlLoggerThreadId == other.TlLoggerThreadId && self.TlBuffersWritten == other.TlBuffersWritten && self.TlLogHandle == other.TlLogHandle && self.TlLogFileName == other.TlLogFileName |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for PDH_LOG_SERVICE_QUERY_INFO_W_0_1 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_LOG_SERVICE_QUERY_INFO_W_0_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_RAW_COUNTER { |
| pub CStatus: u32, |
| pub TimeStamp: super::super::Foundation::FILETIME, |
| pub FirstValue: i64, |
| pub SecondValue: i64, |
| pub MultiCount: u32, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_RAW_COUNTER {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_RAW_COUNTER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_RAW_COUNTER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_RAW_COUNTER").field("CStatus", &self.CStatus).field("TimeStamp", &self.TimeStamp).field("FirstValue", &self.FirstValue).field("SecondValue", &self.SecondValue).field("MultiCount", &self.MultiCount).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_RAW_COUNTER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for PDH_RAW_COUNTER { |
| fn eq(&self, other: &Self) -> bool { |
| self.CStatus == other.CStatus && self.TimeStamp == other.TimeStamp && self.FirstValue == other.FirstValue && self.SecondValue == other.SecondValue && self.MultiCount == other.MultiCount |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for PDH_RAW_COUNTER {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_RAW_COUNTER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_RAW_COUNTER_ITEM_A { |
| pub szName: ::windows::core::PSTR, |
| pub RawValue: PDH_RAW_COUNTER, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_RAW_COUNTER_ITEM_A {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_RAW_COUNTER_ITEM_A { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_RAW_COUNTER_ITEM_A { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_RAW_COUNTER_ITEM_A").field("szName", &self.szName).field("RawValue", &self.RawValue).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_RAW_COUNTER_ITEM_A { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for PDH_RAW_COUNTER_ITEM_A { |
| fn eq(&self, other: &Self) -> bool { |
| self.szName == other.szName && self.RawValue == other.RawValue |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for PDH_RAW_COUNTER_ITEM_A {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_RAW_COUNTER_ITEM_A { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PDH_RAW_COUNTER_ITEM_W { |
| pub szName: ::windows::core::PWSTR, |
| pub RawValue: PDH_RAW_COUNTER, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PDH_RAW_COUNTER_ITEM_W {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PDH_RAW_COUNTER_ITEM_W { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PDH_RAW_COUNTER_ITEM_W { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_RAW_COUNTER_ITEM_W").field("szName", &self.szName).field("RawValue", &self.RawValue).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PDH_RAW_COUNTER_ITEM_W { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for PDH_RAW_COUNTER_ITEM_W { |
| fn eq(&self, other: &Self) -> bool { |
| self.szName == other.szName && self.RawValue == other.RawValue |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for PDH_RAW_COUNTER_ITEM_W {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PDH_RAW_COUNTER_ITEM_W { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_RAW_LOG_RECORD { |
| pub dwStructureSize: u32, |
| pub dwRecordType: PDH_LOG_TYPE, |
| pub dwItems: u32, |
| pub RawBytes: [u8; 1], |
| } |
| impl ::core::marker::Copy for PDH_RAW_LOG_RECORD {} |
| impl ::core::clone::Clone for PDH_RAW_LOG_RECORD { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PDH_RAW_LOG_RECORD { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_RAW_LOG_RECORD").field("dwStructureSize", &self.dwStructureSize).field("dwRecordType", &self.dwRecordType).field("dwItems", &self.dwItems).field("RawBytes", &self.RawBytes).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_RAW_LOG_RECORD { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PDH_RAW_LOG_RECORD { |
| fn eq(&self, other: &Self) -> bool { |
| self.dwStructureSize == other.dwStructureSize && self.dwRecordType == other.dwRecordType && self.dwItems == other.dwItems && self.RawBytes == other.RawBytes |
| } |
| } |
| impl ::core::cmp::Eq for PDH_RAW_LOG_RECORD {} |
| impl ::core::default::Default for PDH_RAW_LOG_RECORD { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_STATISTICS { |
| pub dwFormat: u32, |
| pub count: u32, |
| pub min: PDH_FMT_COUNTERVALUE, |
| pub max: PDH_FMT_COUNTERVALUE, |
| pub mean: PDH_FMT_COUNTERVALUE, |
| } |
| impl ::core::marker::Copy for PDH_STATISTICS {} |
| impl ::core::clone::Clone for PDH_STATISTICS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_STATISTICS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PDH_STATISTICS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PDH_TIME_INFO { |
| pub StartTime: i64, |
| pub EndTime: i64, |
| pub SampleCount: u32, |
| } |
| impl ::core::marker::Copy for PDH_TIME_INFO {} |
| impl ::core::clone::Clone for PDH_TIME_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PDH_TIME_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PDH_TIME_INFO").field("StartTime", &self.StartTime).field("EndTime", &self.EndTime).field("SampleCount", &self.SampleCount).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PDH_TIME_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PDH_TIME_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.StartTime == other.StartTime && self.EndTime == other.EndTime && self.SampleCount == other.SampleCount |
| } |
| } |
| impl ::core::cmp::Eq for PDH_TIME_INFO {} |
| impl ::core::default::Default for PDH_TIME_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTERSET_INFO { |
| pub CounterSetGuid: ::windows::core::GUID, |
| pub ProviderGuid: ::windows::core::GUID, |
| pub NumCounters: u32, |
| pub InstanceType: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTERSET_INFO {} |
| impl ::core::clone::Clone for PERF_COUNTERSET_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTERSET_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTERSET_INFO").field("CounterSetGuid", &self.CounterSetGuid).field("ProviderGuid", &self.ProviderGuid).field("NumCounters", &self.NumCounters).field("InstanceType", &self.InstanceType).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTERSET_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTERSET_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.CounterSetGuid == other.CounterSetGuid && self.ProviderGuid == other.ProviderGuid && self.NumCounters == other.NumCounters && self.InstanceType == other.InstanceType |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTERSET_INFO {} |
| impl ::core::default::Default for PERF_COUNTERSET_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTERSET_INSTANCE { |
| pub CounterSetGuid: ::windows::core::GUID, |
| pub dwSize: u32, |
| pub InstanceId: u32, |
| pub InstanceNameOffset: u32, |
| pub InstanceNameSize: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTERSET_INSTANCE {} |
| impl ::core::clone::Clone for PERF_COUNTERSET_INSTANCE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTERSET_INSTANCE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTERSET_INSTANCE").field("CounterSetGuid", &self.CounterSetGuid).field("dwSize", &self.dwSize).field("InstanceId", &self.InstanceId).field("InstanceNameOffset", &self.InstanceNameOffset).field("InstanceNameSize", &self.InstanceNameSize).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTERSET_INSTANCE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTERSET_INSTANCE { |
| fn eq(&self, other: &Self) -> bool { |
| self.CounterSetGuid == other.CounterSetGuid && self.dwSize == other.dwSize && self.InstanceId == other.InstanceId && self.InstanceNameOffset == other.InstanceNameOffset && self.InstanceNameSize == other.InstanceNameSize |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTERSET_INSTANCE {} |
| impl ::core::default::Default for PERF_COUNTERSET_INSTANCE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTERSET_REG_INFO { |
| pub CounterSetGuid: ::windows::core::GUID, |
| pub CounterSetType: u32, |
| pub DetailLevel: u32, |
| pub NumCounters: u32, |
| pub InstanceType: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTERSET_REG_INFO {} |
| impl ::core::clone::Clone for PERF_COUNTERSET_REG_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTERSET_REG_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTERSET_REG_INFO").field("CounterSetGuid", &self.CounterSetGuid).field("CounterSetType", &self.CounterSetType).field("DetailLevel", &self.DetailLevel).field("NumCounters", &self.NumCounters).field("InstanceType", &self.InstanceType).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTERSET_REG_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTERSET_REG_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.CounterSetGuid == other.CounterSetGuid && self.CounterSetType == other.CounterSetType && self.DetailLevel == other.DetailLevel && self.NumCounters == other.NumCounters && self.InstanceType == other.InstanceType |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTERSET_REG_INFO {} |
| impl ::core::default::Default for PERF_COUNTERSET_REG_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTER_BLOCK { |
| pub ByteLength: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTER_BLOCK {} |
| impl ::core::clone::Clone for PERF_COUNTER_BLOCK { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTER_BLOCK { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTER_BLOCK").field("ByteLength", &self.ByteLength).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTER_BLOCK { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTER_BLOCK { |
| fn eq(&self, other: &Self) -> bool { |
| self.ByteLength == other.ByteLength |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTER_BLOCK {} |
| impl ::core::default::Default for PERF_COUNTER_BLOCK { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTER_DATA { |
| pub dwDataSize: u32, |
| pub dwSize: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTER_DATA {} |
| impl ::core::clone::Clone for PERF_COUNTER_DATA { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTER_DATA { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTER_DATA").field("dwDataSize", &self.dwDataSize).field("dwSize", &self.dwSize).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTER_DATA { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTER_DATA { |
| fn eq(&self, other: &Self) -> bool { |
| self.dwDataSize == other.dwDataSize && self.dwSize == other.dwSize |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTER_DATA {} |
| impl ::core::default::Default for PERF_COUNTER_DATA { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| pub struct PERF_COUNTER_DEFINITION { |
| pub ByteLength: u32, |
| pub CounterNameTitleIndex: u32, |
| pub CounterNameTitle: u32, |
| pub CounterHelpTitleIndex: u32, |
| pub CounterHelpTitle: u32, |
| pub DefaultScale: i32, |
| pub DetailLevel: u32, |
| pub CounterType: u32, |
| pub CounterSize: u32, |
| pub CounterOffset: u32, |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::marker::Copy for PERF_COUNTER_DEFINITION {} |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::clone::Clone for PERF_COUNTER_DEFINITION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::fmt::Debug for PERF_COUNTER_DEFINITION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTER_DEFINITION") |
| .field("ByteLength", &self.ByteLength) |
| .field("CounterNameTitleIndex", &self.CounterNameTitleIndex) |
| .field("CounterNameTitle", &self.CounterNameTitle) |
| .field("CounterHelpTitleIndex", &self.CounterHelpTitleIndex) |
| .field("CounterHelpTitle", &self.CounterHelpTitle) |
| .field("DefaultScale", &self.DefaultScale) |
| .field("DetailLevel", &self.DetailLevel) |
| .field("CounterType", &self.CounterType) |
| .field("CounterSize", &self.CounterSize) |
| .field("CounterOffset", &self.CounterOffset) |
| .finish() |
| } |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::windows::core::TypeKind for PERF_COUNTER_DEFINITION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::cmp::PartialEq for PERF_COUNTER_DEFINITION { |
| fn eq(&self, other: &Self) -> bool { |
| self.ByteLength == other.ByteLength && self.CounterNameTitleIndex == other.CounterNameTitleIndex && self.CounterNameTitle == other.CounterNameTitle && self.CounterHelpTitleIndex == other.CounterHelpTitleIndex && self.CounterHelpTitle == other.CounterHelpTitle && self.DefaultScale == other.DefaultScale && self.DetailLevel == other.DetailLevel && self.CounterType == other.CounterType && self.CounterSize == other.CounterSize && self.CounterOffset == other.CounterOffset |
| } |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::cmp::Eq for PERF_COUNTER_DEFINITION {} |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::default::Default for PERF_COUNTER_DEFINITION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[cfg(target_arch = "x86")] |
| pub struct PERF_COUNTER_DEFINITION { |
| pub ByteLength: u32, |
| pub CounterNameTitleIndex: u32, |
| pub CounterNameTitle: ::windows::core::PWSTR, |
| pub CounterHelpTitleIndex: u32, |
| pub CounterHelpTitle: ::windows::core::PWSTR, |
| pub DefaultScale: i32, |
| pub DetailLevel: u32, |
| pub CounterType: u32, |
| pub CounterSize: u32, |
| pub CounterOffset: u32, |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::core::marker::Copy for PERF_COUNTER_DEFINITION {} |
| #[cfg(target_arch = "x86")] |
| impl ::core::clone::Clone for PERF_COUNTER_DEFINITION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::core::fmt::Debug for PERF_COUNTER_DEFINITION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTER_DEFINITION") |
| .field("ByteLength", &self.ByteLength) |
| .field("CounterNameTitleIndex", &self.CounterNameTitleIndex) |
| .field("CounterNameTitle", &self.CounterNameTitle) |
| .field("CounterHelpTitleIndex", &self.CounterHelpTitleIndex) |
| .field("CounterHelpTitle", &self.CounterHelpTitle) |
| .field("DefaultScale", &self.DefaultScale) |
| .field("DetailLevel", &self.DetailLevel) |
| .field("CounterType", &self.CounterType) |
| .field("CounterSize", &self.CounterSize) |
| .field("CounterOffset", &self.CounterOffset) |
| .finish() |
| } |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::windows::core::TypeKind for PERF_COUNTER_DEFINITION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::core::cmp::PartialEq for PERF_COUNTER_DEFINITION { |
| fn eq(&self, other: &Self) -> bool { |
| self.ByteLength == other.ByteLength && self.CounterNameTitleIndex == other.CounterNameTitleIndex && self.CounterNameTitle == other.CounterNameTitle && self.CounterHelpTitleIndex == other.CounterHelpTitleIndex && self.CounterHelpTitle == other.CounterHelpTitle && self.DefaultScale == other.DefaultScale && self.DetailLevel == other.DetailLevel && self.CounterType == other.CounterType && self.CounterSize == other.CounterSize && self.CounterOffset == other.CounterOffset |
| } |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::core::cmp::Eq for PERF_COUNTER_DEFINITION {} |
| #[cfg(target_arch = "x86")] |
| impl ::core::default::Default for PERF_COUNTER_DEFINITION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTER_HEADER { |
| pub dwStatus: u32, |
| pub dwType: PerfCounterDataType, |
| pub dwSize: u32, |
| pub Reserved: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTER_HEADER {} |
| impl ::core::clone::Clone for PERF_COUNTER_HEADER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTER_HEADER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTER_HEADER").field("dwStatus", &self.dwStatus).field("dwType", &self.dwType).field("dwSize", &self.dwSize).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTER_HEADER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTER_HEADER { |
| fn eq(&self, other: &Self) -> bool { |
| self.dwStatus == other.dwStatus && self.dwType == other.dwType && self.dwSize == other.dwSize && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTER_HEADER {} |
| impl ::core::default::Default for PERF_COUNTER_HEADER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTER_IDENTIFIER { |
| pub CounterSetGuid: ::windows::core::GUID, |
| pub Status: u32, |
| pub Size: u32, |
| pub CounterId: u32, |
| pub InstanceId: u32, |
| pub Index: u32, |
| pub Reserved: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTER_IDENTIFIER {} |
| impl ::core::clone::Clone for PERF_COUNTER_IDENTIFIER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTER_IDENTIFIER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTER_IDENTIFIER").field("CounterSetGuid", &self.CounterSetGuid).field("Status", &self.Status).field("Size", &self.Size).field("CounterId", &self.CounterId).field("InstanceId", &self.InstanceId).field("Index", &self.Index).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTER_IDENTIFIER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTER_IDENTIFIER { |
| fn eq(&self, other: &Self) -> bool { |
| self.CounterSetGuid == other.CounterSetGuid && self.Status == other.Status && self.Size == other.Size && self.CounterId == other.CounterId && self.InstanceId == other.InstanceId && self.Index == other.Index && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTER_IDENTIFIER {} |
| impl ::core::default::Default for PERF_COUNTER_IDENTIFIER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTER_IDENTITY { |
| pub CounterSetGuid: ::windows::core::GUID, |
| pub BufferSize: u32, |
| pub CounterId: u32, |
| pub InstanceId: u32, |
| pub MachineOffset: u32, |
| pub NameOffset: u32, |
| pub Reserved: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTER_IDENTITY {} |
| impl ::core::clone::Clone for PERF_COUNTER_IDENTITY { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTER_IDENTITY { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTER_IDENTITY").field("CounterSetGuid", &self.CounterSetGuid).field("BufferSize", &self.BufferSize).field("CounterId", &self.CounterId).field("InstanceId", &self.InstanceId).field("MachineOffset", &self.MachineOffset).field("NameOffset", &self.NameOffset).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTER_IDENTITY { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTER_IDENTITY { |
| fn eq(&self, other: &Self) -> bool { |
| self.CounterSetGuid == other.CounterSetGuid && self.BufferSize == other.BufferSize && self.CounterId == other.CounterId && self.InstanceId == other.InstanceId && self.MachineOffset == other.MachineOffset && self.NameOffset == other.NameOffset && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTER_IDENTITY {} |
| impl ::core::default::Default for PERF_COUNTER_IDENTITY { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTER_INFO { |
| pub CounterId: u32, |
| pub Type: u32, |
| pub Attrib: u64, |
| pub Size: u32, |
| pub DetailLevel: u32, |
| pub Scale: i32, |
| pub Offset: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTER_INFO {} |
| impl ::core::clone::Clone for PERF_COUNTER_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTER_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTER_INFO").field("CounterId", &self.CounterId).field("Type", &self.Type).field("Attrib", &self.Attrib).field("Size", &self.Size).field("DetailLevel", &self.DetailLevel).field("Scale", &self.Scale).field("Offset", &self.Offset).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTER_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTER_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.CounterId == other.CounterId && self.Type == other.Type && self.Attrib == other.Attrib && self.Size == other.Size && self.DetailLevel == other.DetailLevel && self.Scale == other.Scale && self.Offset == other.Offset |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTER_INFO {} |
| impl ::core::default::Default for PERF_COUNTER_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_COUNTER_REG_INFO { |
| pub CounterId: u32, |
| pub Type: u32, |
| pub Attrib: u64, |
| pub DetailLevel: u32, |
| pub DefaultScale: i32, |
| pub BaseCounterId: u32, |
| pub PerfTimeId: u32, |
| pub PerfFreqId: u32, |
| pub MultiId: u32, |
| pub AggregateFunc: PERF_COUNTER_AGGREGATE_FUNC, |
| pub Reserved: u32, |
| } |
| impl ::core::marker::Copy for PERF_COUNTER_REG_INFO {} |
| impl ::core::clone::Clone for PERF_COUNTER_REG_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_COUNTER_REG_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_COUNTER_REG_INFO").field("CounterId", &self.CounterId).field("Type", &self.Type).field("Attrib", &self.Attrib).field("DetailLevel", &self.DetailLevel).field("DefaultScale", &self.DefaultScale).field("BaseCounterId", &self.BaseCounterId).field("PerfTimeId", &self.PerfTimeId).field("PerfFreqId", &self.PerfFreqId).field("MultiId", &self.MultiId).field("AggregateFunc", &self.AggregateFunc).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_COUNTER_REG_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_COUNTER_REG_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.CounterId == other.CounterId && self.Type == other.Type && self.Attrib == other.Attrib && self.DetailLevel == other.DetailLevel && self.DefaultScale == other.DefaultScale && self.BaseCounterId == other.BaseCounterId && self.PerfTimeId == other.PerfTimeId && self.PerfFreqId == other.PerfFreqId && self.MultiId == other.MultiId && self.AggregateFunc == other.AggregateFunc && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for PERF_COUNTER_REG_INFO {} |
| impl ::core::default::Default for PERF_COUNTER_REG_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PERF_DATA_BLOCK { |
| pub Signature: [u16; 4], |
| pub LittleEndian: u32, |
| pub Version: u32, |
| pub Revision: u32, |
| pub TotalByteLength: u32, |
| pub HeaderLength: u32, |
| pub NumObjectTypes: u32, |
| pub DefaultObject: i32, |
| pub SystemTime: super::super::Foundation::SYSTEMTIME, |
| pub PerfTime: i64, |
| pub PerfFreq: i64, |
| pub PerfTime100nSec: i64, |
| pub SystemNameLength: u32, |
| pub SystemNameOffset: u32, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PERF_DATA_BLOCK {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PERF_DATA_BLOCK { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PERF_DATA_BLOCK { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_DATA_BLOCK") |
| .field("Signature", &self.Signature) |
| .field("LittleEndian", &self.LittleEndian) |
| .field("Version", &self.Version) |
| .field("Revision", &self.Revision) |
| .field("TotalByteLength", &self.TotalByteLength) |
| .field("HeaderLength", &self.HeaderLength) |
| .field("NumObjectTypes", &self.NumObjectTypes) |
| .field("DefaultObject", &self.DefaultObject) |
| .field("SystemTime", &self.SystemTime) |
| .field("PerfTime", &self.PerfTime) |
| .field("PerfFreq", &self.PerfFreq) |
| .field("PerfTime100nSec", &self.PerfTime100nSec) |
| .field("SystemNameLength", &self.SystemNameLength) |
| .field("SystemNameOffset", &self.SystemNameOffset) |
| .finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PERF_DATA_BLOCK { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for PERF_DATA_BLOCK { |
| fn eq(&self, other: &Self) -> bool { |
| self.Signature == other.Signature && self.LittleEndian == other.LittleEndian && self.Version == other.Version && self.Revision == other.Revision && self.TotalByteLength == other.TotalByteLength && self.HeaderLength == other.HeaderLength && self.NumObjectTypes == other.NumObjectTypes && self.DefaultObject == other.DefaultObject && self.SystemTime == other.SystemTime && self.PerfTime == other.PerfTime && self.PerfFreq == other.PerfFreq && self.PerfTime100nSec == other.PerfTime100nSec && self.SystemNameLength == other.SystemNameLength && self.SystemNameOffset == other.SystemNameOffset |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for PERF_DATA_BLOCK {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PERF_DATA_BLOCK { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct PERF_DATA_HEADER { |
| pub dwTotalSize: u32, |
| pub dwNumCounters: u32, |
| pub PerfTimeStamp: i64, |
| pub PerfTime100NSec: i64, |
| pub PerfFreq: i64, |
| pub SystemTime: super::super::Foundation::SYSTEMTIME, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for PERF_DATA_HEADER {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for PERF_DATA_HEADER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for PERF_DATA_HEADER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_DATA_HEADER").field("dwTotalSize", &self.dwTotalSize).field("dwNumCounters", &self.dwNumCounters).field("PerfTimeStamp", &self.PerfTimeStamp).field("PerfTime100NSec", &self.PerfTime100NSec).field("PerfFreq", &self.PerfFreq).field("SystemTime", &self.SystemTime).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for PERF_DATA_HEADER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for PERF_DATA_HEADER { |
| fn eq(&self, other: &Self) -> bool { |
| self.dwTotalSize == other.dwTotalSize && self.dwNumCounters == other.dwNumCounters && self.PerfTimeStamp == other.PerfTimeStamp && self.PerfTime100NSec == other.PerfTime100NSec && self.PerfFreq == other.PerfFreq && self.SystemTime == other.SystemTime |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for PERF_DATA_HEADER {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for PERF_DATA_HEADER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_INSTANCE_DEFINITION { |
| pub ByteLength: u32, |
| pub ParentObjectTitleIndex: u32, |
| pub ParentObjectInstance: u32, |
| pub UniqueID: i32, |
| pub NameOffset: u32, |
| pub NameLength: u32, |
| } |
| impl ::core::marker::Copy for PERF_INSTANCE_DEFINITION {} |
| impl ::core::clone::Clone for PERF_INSTANCE_DEFINITION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_INSTANCE_DEFINITION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_INSTANCE_DEFINITION").field("ByteLength", &self.ByteLength).field("ParentObjectTitleIndex", &self.ParentObjectTitleIndex).field("ParentObjectInstance", &self.ParentObjectInstance).field("UniqueID", &self.UniqueID).field("NameOffset", &self.NameOffset).field("NameLength", &self.NameLength).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_INSTANCE_DEFINITION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_INSTANCE_DEFINITION { |
| fn eq(&self, other: &Self) -> bool { |
| self.ByteLength == other.ByteLength && self.ParentObjectTitleIndex == other.ParentObjectTitleIndex && self.ParentObjectInstance == other.ParentObjectInstance && self.UniqueID == other.UniqueID && self.NameOffset == other.NameOffset && self.NameLength == other.NameLength |
| } |
| } |
| impl ::core::cmp::Eq for PERF_INSTANCE_DEFINITION {} |
| impl ::core::default::Default for PERF_INSTANCE_DEFINITION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_INSTANCE_HEADER { |
| pub Size: u32, |
| pub InstanceId: u32, |
| } |
| impl ::core::marker::Copy for PERF_INSTANCE_HEADER {} |
| impl ::core::clone::Clone for PERF_INSTANCE_HEADER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_INSTANCE_HEADER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_INSTANCE_HEADER").field("Size", &self.Size).field("InstanceId", &self.InstanceId).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_INSTANCE_HEADER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_INSTANCE_HEADER { |
| fn eq(&self, other: &Self) -> bool { |
| self.Size == other.Size && self.InstanceId == other.InstanceId |
| } |
| } |
| impl ::core::cmp::Eq for PERF_INSTANCE_HEADER {} |
| impl ::core::default::Default for PERF_INSTANCE_HEADER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_MULTI_COUNTERS { |
| pub dwSize: u32, |
| pub dwCounters: u32, |
| } |
| impl ::core::marker::Copy for PERF_MULTI_COUNTERS {} |
| impl ::core::clone::Clone for PERF_MULTI_COUNTERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_MULTI_COUNTERS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_MULTI_COUNTERS").field("dwSize", &self.dwSize).field("dwCounters", &self.dwCounters).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_MULTI_COUNTERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_MULTI_COUNTERS { |
| fn eq(&self, other: &Self) -> bool { |
| self.dwSize == other.dwSize && self.dwCounters == other.dwCounters |
| } |
| } |
| impl ::core::cmp::Eq for PERF_MULTI_COUNTERS {} |
| impl ::core::default::Default for PERF_MULTI_COUNTERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_MULTI_INSTANCES { |
| pub dwTotalSize: u32, |
| pub dwInstances: u32, |
| } |
| impl ::core::marker::Copy for PERF_MULTI_INSTANCES {} |
| impl ::core::clone::Clone for PERF_MULTI_INSTANCES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_MULTI_INSTANCES { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_MULTI_INSTANCES").field("dwTotalSize", &self.dwTotalSize).field("dwInstances", &self.dwInstances).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_MULTI_INSTANCES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_MULTI_INSTANCES { |
| fn eq(&self, other: &Self) -> bool { |
| self.dwTotalSize == other.dwTotalSize && self.dwInstances == other.dwInstances |
| } |
| } |
| impl ::core::cmp::Eq for PERF_MULTI_INSTANCES {} |
| impl ::core::default::Default for PERF_MULTI_INSTANCES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| pub struct PERF_OBJECT_TYPE { |
| pub TotalByteLength: u32, |
| pub DefinitionLength: u32, |
| pub HeaderLength: u32, |
| pub ObjectNameTitleIndex: u32, |
| pub ObjectNameTitle: u32, |
| pub ObjectHelpTitleIndex: u32, |
| pub ObjectHelpTitle: u32, |
| pub DetailLevel: u32, |
| pub NumCounters: u32, |
| pub DefaultCounter: i32, |
| pub NumInstances: i32, |
| pub CodePage: u32, |
| pub PerfTime: i64, |
| pub PerfFreq: i64, |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::marker::Copy for PERF_OBJECT_TYPE {} |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::clone::Clone for PERF_OBJECT_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::fmt::Debug for PERF_OBJECT_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_OBJECT_TYPE") |
| .field("TotalByteLength", &self.TotalByteLength) |
| .field("DefinitionLength", &self.DefinitionLength) |
| .field("HeaderLength", &self.HeaderLength) |
| .field("ObjectNameTitleIndex", &self.ObjectNameTitleIndex) |
| .field("ObjectNameTitle", &self.ObjectNameTitle) |
| .field("ObjectHelpTitleIndex", &self.ObjectHelpTitleIndex) |
| .field("ObjectHelpTitle", &self.ObjectHelpTitle) |
| .field("DetailLevel", &self.DetailLevel) |
| .field("NumCounters", &self.NumCounters) |
| .field("DefaultCounter", &self.DefaultCounter) |
| .field("NumInstances", &self.NumInstances) |
| .field("CodePage", &self.CodePage) |
| .field("PerfTime", &self.PerfTime) |
| .field("PerfFreq", &self.PerfFreq) |
| .finish() |
| } |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::windows::core::TypeKind for PERF_OBJECT_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::cmp::PartialEq for PERF_OBJECT_TYPE { |
| fn eq(&self, other: &Self) -> bool { |
| self.TotalByteLength == other.TotalByteLength && self.DefinitionLength == other.DefinitionLength && self.HeaderLength == other.HeaderLength && self.ObjectNameTitleIndex == other.ObjectNameTitleIndex && self.ObjectNameTitle == other.ObjectNameTitle && self.ObjectHelpTitleIndex == other.ObjectHelpTitleIndex && self.ObjectHelpTitle == other.ObjectHelpTitle && self.DetailLevel == other.DetailLevel && self.NumCounters == other.NumCounters && self.DefaultCounter == other.DefaultCounter && self.NumInstances == other.NumInstances && self.CodePage == other.CodePage && self.PerfTime == other.PerfTime && self.PerfFreq == other.PerfFreq |
| } |
| } |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::cmp::Eq for PERF_OBJECT_TYPE {} |
| #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
| impl ::core::default::Default for PERF_OBJECT_TYPE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| #[cfg(target_arch = "x86")] |
| pub struct PERF_OBJECT_TYPE { |
| pub TotalByteLength: u32, |
| pub DefinitionLength: u32, |
| pub HeaderLength: u32, |
| pub ObjectNameTitleIndex: u32, |
| pub ObjectNameTitle: ::windows::core::PWSTR, |
| pub ObjectHelpTitleIndex: u32, |
| pub ObjectHelpTitle: ::windows::core::PWSTR, |
| pub DetailLevel: u32, |
| pub NumCounters: u32, |
| pub DefaultCounter: i32, |
| pub NumInstances: i32, |
| pub CodePage: u32, |
| pub PerfTime: i64, |
| pub PerfFreq: i64, |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::core::marker::Copy for PERF_OBJECT_TYPE {} |
| #[cfg(target_arch = "x86")] |
| impl ::core::clone::Clone for PERF_OBJECT_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::core::fmt::Debug for PERF_OBJECT_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_OBJECT_TYPE") |
| .field("TotalByteLength", &self.TotalByteLength) |
| .field("DefinitionLength", &self.DefinitionLength) |
| .field("HeaderLength", &self.HeaderLength) |
| .field("ObjectNameTitleIndex", &self.ObjectNameTitleIndex) |
| .field("ObjectNameTitle", &self.ObjectNameTitle) |
| .field("ObjectHelpTitleIndex", &self.ObjectHelpTitleIndex) |
| .field("ObjectHelpTitle", &self.ObjectHelpTitle) |
| .field("DetailLevel", &self.DetailLevel) |
| .field("NumCounters", &self.NumCounters) |
| .field("DefaultCounter", &self.DefaultCounter) |
| .field("NumInstances", &self.NumInstances) |
| .field("CodePage", &self.CodePage) |
| .field("PerfTime", &self.PerfTime) |
| .field("PerfFreq", &self.PerfFreq) |
| .finish() |
| } |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::windows::core::TypeKind for PERF_OBJECT_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::core::cmp::PartialEq for PERF_OBJECT_TYPE { |
| fn eq(&self, other: &Self) -> bool { |
| self.TotalByteLength == other.TotalByteLength && self.DefinitionLength == other.DefinitionLength && self.HeaderLength == other.HeaderLength && self.ObjectNameTitleIndex == other.ObjectNameTitleIndex && self.ObjectNameTitle == other.ObjectNameTitle && self.ObjectHelpTitleIndex == other.ObjectHelpTitleIndex && self.ObjectHelpTitle == other.ObjectHelpTitle && self.DetailLevel == other.DetailLevel && self.NumCounters == other.NumCounters && self.DefaultCounter == other.DefaultCounter && self.NumInstances == other.NumInstances && self.CodePage == other.CodePage && self.PerfTime == other.PerfTime && self.PerfFreq == other.PerfFreq |
| } |
| } |
| #[cfg(target_arch = "x86")] |
| impl ::core::cmp::Eq for PERF_OBJECT_TYPE {} |
| #[cfg(target_arch = "x86")] |
| impl ::core::default::Default for PERF_OBJECT_TYPE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_PROVIDER_CONTEXT { |
| pub ContextSize: u32, |
| pub Reserved: u32, |
| pub ControlCallback: PERFLIBREQUEST, |
| pub MemAllocRoutine: PERF_MEM_ALLOC, |
| pub MemFreeRoutine: PERF_MEM_FREE, |
| pub pMemContext: *mut ::core::ffi::c_void, |
| } |
| impl ::core::marker::Copy for PERF_PROVIDER_CONTEXT {} |
| impl ::core::clone::Clone for PERF_PROVIDER_CONTEXT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_PROVIDER_CONTEXT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_PROVIDER_CONTEXT").field("ContextSize", &self.ContextSize).field("Reserved", &self.Reserved).field("pMemContext", &self.pMemContext).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_PROVIDER_CONTEXT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PERF_PROVIDER_CONTEXT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_STRING_BUFFER_HEADER { |
| pub dwSize: u32, |
| pub dwCounters: u32, |
| } |
| impl ::core::marker::Copy for PERF_STRING_BUFFER_HEADER {} |
| impl ::core::clone::Clone for PERF_STRING_BUFFER_HEADER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_STRING_BUFFER_HEADER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_STRING_BUFFER_HEADER").field("dwSize", &self.dwSize).field("dwCounters", &self.dwCounters).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_STRING_BUFFER_HEADER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_STRING_BUFFER_HEADER { |
| fn eq(&self, other: &Self) -> bool { |
| self.dwSize == other.dwSize && self.dwCounters == other.dwCounters |
| } |
| } |
| impl ::core::cmp::Eq for PERF_STRING_BUFFER_HEADER {} |
| impl ::core::default::Default for PERF_STRING_BUFFER_HEADER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub struct PERF_STRING_COUNTER_HEADER { |
| pub dwCounterId: u32, |
| pub dwOffset: u32, |
| } |
| impl ::core::marker::Copy for PERF_STRING_COUNTER_HEADER {} |
| impl ::core::clone::Clone for PERF_STRING_COUNTER_HEADER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for PERF_STRING_COUNTER_HEADER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("PERF_STRING_COUNTER_HEADER").field("dwCounterId", &self.dwCounterId).field("dwOffset", &self.dwOffset).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PERF_STRING_COUNTER_HEADER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for PERF_STRING_COUNTER_HEADER { |
| fn eq(&self, other: &Self) -> bool { |
| self.dwCounterId == other.dwCounterId && self.dwOffset == other.dwOffset |
| } |
| } |
| impl ::core::cmp::Eq for PERF_STRING_COUNTER_HEADER {} |
| impl ::core::default::Default for PERF_STRING_COUNTER_HEADER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PerfProviderHandle(pub isize); |
| impl PerfProviderHandle { |
| pub fn is_invalid(&self) -> bool { |
| self.0 == -1 || self.0 == 0 |
| } |
| } |
| impl ::core::default::Default for PerfProviderHandle { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| impl ::core::clone::Clone for PerfProviderHandle { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::marker::Copy for PerfProviderHandle {} |
| impl ::core::fmt::Debug for PerfProviderHandle { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PerfProviderHandle").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PerfProviderHandle { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PerfQueryHandle(pub isize); |
| impl PerfQueryHandle { |
| pub fn is_invalid(&self) -> bool { |
| self.0 == -1 || self.0 == 0 |
| } |
| } |
| impl ::core::default::Default for PerfQueryHandle { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| impl ::core::clone::Clone for PerfQueryHandle { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::marker::Copy for PerfQueryHandle {} |
| impl ::core::fmt::Debug for PerfQueryHandle { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PerfQueryHandle").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for PerfQueryHandle { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub type CounterPathCallBack = ::core::option::Option<unsafe extern "system" fn(param0: usize) -> i32>; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub type PERFLIBREQUEST = ::core::option::Option<unsafe extern "system" fn(requestcode: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32) -> u32>; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub type PERF_MEM_ALLOC = ::core::option::Option<unsafe extern "system" fn(allocsize: usize, pcontext: *mut ::core::ffi::c_void) -> *mut ::core::ffi::c_void>; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub type PERF_MEM_FREE = ::core::option::Option<unsafe extern "system" fn(pbuffer: *mut ::core::ffi::c_void, pcontext: *mut ::core::ffi::c_void) -> ()>; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub type PLA_CABEXTRACT_CALLBACK = ::core::option::Option<unsafe extern "system" fn(filename: ::windows::core::PCWSTR, context: *mut ::core::ffi::c_void) -> ()>; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub type PM_CLOSE_PROC = ::core::option::Option<unsafe extern "system" fn() -> u32>; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub type PM_COLLECT_PROC = ::core::option::Option<unsafe extern "system" fn(pvaluename: ::windows::core::PCWSTR, ppdata: *mut *mut ::core::ffi::c_void, pcbtotalbytes: *mut u32, pnumobjecttypes: *mut u32) -> u32>; |
| #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
| pub type PM_OPEN_PROC = ::core::option::Option<unsafe extern "system" fn(pcontext: ::windows::core::PCWSTR) -> u32>; |
| #[cfg(feature = "implement")] |
| ::core::include!("impl.rs"); |