]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #[cfg(feature = "Win32_System_Performance_HardwareCounterProfiling")] |
2 | pub mod HardwareCounterProfiling; | |
3 | #[link(name = "windows")] | |
4 | extern "system" { | |
04454e1e FG |
5 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
6 | pub fn BackupPerfRegistryToFileW(szfilename: ::windows_sys::core::PCWSTR, szcommentstring: ::windows_sys::core::PCWSTR) -> u32; | |
7 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
8 | pub fn InstallPerfDllA(szcomputername: ::windows_sys::core::PCSTR, lpinifile: ::windows_sys::core::PCSTR, dwflags: usize) -> u32; | |
9 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
10 | pub fn InstallPerfDllW(szcomputername: ::windows_sys::core::PCWSTR, lpinifile: ::windows_sys::core::PCWSTR, dwflags: usize) -> u32; | |
11 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
12 | #[cfg(feature = "Win32_Foundation")] | |
13 | pub fn LoadPerfCounterTextStringsA(lpcommandline: ::windows_sys::core::PCSTR, bquietmodearg: super::super::Foundation::BOOL) -> u32; | |
14 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
15 | #[cfg(feature = "Win32_Foundation")] | |
16 | pub fn LoadPerfCounterTextStringsW(lpcommandline: ::windows_sys::core::PCWSTR, bquietmodearg: super::super::Foundation::BOOL) -> u32; | |
17 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
18 | pub fn PdhAddCounterA(hquery: isize, szfullcounterpath: ::windows_sys::core::PCSTR, dwuserdata: usize, phcounter: *mut isize) -> i32; | |
19 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
20 | pub fn PdhAddCounterW(hquery: isize, szfullcounterpath: ::windows_sys::core::PCWSTR, dwuserdata: usize, phcounter: *mut isize) -> i32; | |
21 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
22 | pub fn PdhAddEnglishCounterA(hquery: isize, szfullcounterpath: ::windows_sys::core::PCSTR, dwuserdata: usize, phcounter: *mut isize) -> i32; | |
23 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
24 | pub fn PdhAddEnglishCounterW(hquery: isize, szfullcounterpath: ::windows_sys::core::PCWSTR, dwuserdata: usize, phcounter: *mut isize) -> i32; | |
25 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
26 | pub fn PdhBindInputDataSourceA(phdatasource: *mut isize, logfilenamelist: ::windows_sys::core::PCSTR) -> i32; | |
27 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
28 | pub fn PdhBindInputDataSourceW(phdatasource: *mut isize, logfilenamelist: ::windows_sys::core::PCWSTR) -> i32; | |
29 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 FG |
30 | #[cfg(feature = "Win32_Foundation")] |
31 | pub fn PdhBrowseCountersA(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_A) -> i32; | |
04454e1e | 32 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
33 | #[cfg(feature = "Win32_Foundation")] |
34 | pub fn PdhBrowseCountersHA(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_HA) -> i32; | |
04454e1e | 35 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
36 | #[cfg(feature = "Win32_Foundation")] |
37 | pub fn PdhBrowseCountersHW(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_HW) -> i32; | |
04454e1e | 38 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
39 | #[cfg(feature = "Win32_Foundation")] |
40 | pub fn PdhBrowseCountersW(pbrowsedlgdata: *const PDH_BROWSE_DLG_CONFIG_W) -> i32; | |
04454e1e | 41 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
42 | #[cfg(feature = "Win32_Foundation")] |
43 | pub fn PdhCalculateCounterFromRawValue(hcounter: isize, dwformat: PDH_FMT, rawvalue1: *const PDH_RAW_COUNTER, rawvalue2: *const PDH_RAW_COUNTER, fmtvalue: *mut PDH_FMT_COUNTERVALUE) -> i32; | |
04454e1e | 44 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 45 | pub fn PdhCloseLog(hlog: isize, dwflags: u32) -> i32; |
04454e1e | 46 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 47 | pub fn PdhCloseQuery(hquery: isize) -> i32; |
04454e1e | 48 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 49 | pub fn PdhCollectQueryData(hquery: isize) -> i32; |
04454e1e | 50 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
51 | #[cfg(feature = "Win32_Foundation")] |
52 | pub fn PdhCollectQueryDataEx(hquery: isize, dwintervaltime: u32, hnewdataevent: super::super::Foundation::HANDLE) -> i32; | |
04454e1e | 53 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 54 | pub fn PdhCollectQueryDataWithTime(hquery: isize, plltimestamp: *mut i64) -> i32; |
04454e1e | 55 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
56 | #[cfg(feature = "Win32_Foundation")] |
57 | pub fn PdhComputeCounterStatistics(hcounter: isize, dwformat: PDH_FMT, dwfirstentry: u32, dwnumentries: u32, lprawvaluearray: *const PDH_RAW_COUNTER, data: *mut PDH_STATISTICS) -> i32; | |
04454e1e FG |
58 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
59 | pub fn PdhConnectMachineA(szmachinename: ::windows_sys::core::PCSTR) -> i32; | |
60 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
61 | pub fn PdhConnectMachineW(szmachinename: ::windows_sys::core::PCWSTR) -> i32; | |
62 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
63 | pub fn PdhCreateSQLTablesA(szdatasource: ::windows_sys::core::PCSTR) -> i32; | |
64 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
65 | pub fn PdhCreateSQLTablesW(szdatasource: ::windows_sys::core::PCWSTR) -> i32; | |
66 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
67 | pub fn PdhEnumLogSetNamesA(szdatasource: ::windows_sys::core::PCSTR, mszdatasetnamelist: ::windows_sys::core::PSTR, pcchbufferlength: *mut u32) -> i32; | |
68 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
69 | pub fn PdhEnumLogSetNamesW(szdatasource: ::windows_sys::core::PCWSTR, mszdatasetnamelist: ::windows_sys::core::PWSTR, pcchbufferlength: *mut u32) -> i32; | |
70 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
71 | pub fn PdhEnumMachinesA(szdatasource: ::windows_sys::core::PCSTR, mszmachinelist: ::windows_sys::core::PSTR, pcchbuffersize: *mut u32) -> i32; | |
72 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
73 | pub fn PdhEnumMachinesHA(hdatasource: isize, mszmachinelist: ::windows_sys::core::PSTR, pcchbuffersize: *mut u32) -> i32; | |
74 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
75 | pub fn PdhEnumMachinesHW(hdatasource: isize, mszmachinelist: ::windows_sys::core::PWSTR, pcchbuffersize: *mut u32) -> i32; | |
76 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
77 | pub fn PdhEnumMachinesW(szdatasource: ::windows_sys::core::PCWSTR, mszmachinelist: ::windows_sys::core::PWSTR, pcchbuffersize: *mut u32) -> i32; | |
78 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
79 | pub fn PdhEnumObjectItemsA(szdatasource: ::windows_sys::core::PCSTR, szmachinename: ::windows_sys::core::PCSTR, szobjectname: ::windows_sys::core::PCSTR, mszcounterlist: ::windows_sys::core::PSTR, pcchcounterlistlength: *mut u32, mszinstancelist: ::windows_sys::core::PSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> i32; | |
80 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
81 | pub fn PdhEnumObjectItemsHA(hdatasource: isize, szmachinename: ::windows_sys::core::PCSTR, szobjectname: ::windows_sys::core::PCSTR, mszcounterlist: ::windows_sys::core::PSTR, pcchcounterlistlength: *mut u32, mszinstancelist: ::windows_sys::core::PSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> i32; | |
82 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
83 | pub fn PdhEnumObjectItemsHW(hdatasource: isize, szmachinename: ::windows_sys::core::PCWSTR, szobjectname: ::windows_sys::core::PCWSTR, mszcounterlist: ::windows_sys::core::PWSTR, pcchcounterlistlength: *mut u32, mszinstancelist: ::windows_sys::core::PWSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> i32; | |
84 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
85 | pub fn PdhEnumObjectItemsW(szdatasource: ::windows_sys::core::PCWSTR, szmachinename: ::windows_sys::core::PCWSTR, szobjectname: ::windows_sys::core::PCWSTR, mszcounterlist: ::windows_sys::core::PWSTR, pcchcounterlistlength: *mut u32, mszinstancelist: ::windows_sys::core::PWSTR, pcchinstancelistlength: *mut u32, dwdetaillevel: PERF_DETAIL, dwflags: u32) -> i32; | |
86 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
87 | #[cfg(feature = "Win32_Foundation")] | |
88 | pub fn PdhEnumObjectsA(szdatasource: ::windows_sys::core::PCSTR, szmachinename: ::windows_sys::core::PCSTR, mszobjectlist: ::windows_sys::core::PSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: super::super::Foundation::BOOL) -> i32; | |
89 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
90 | #[cfg(feature = "Win32_Foundation")] | |
91 | pub fn PdhEnumObjectsHA(hdatasource: isize, szmachinename: ::windows_sys::core::PCSTR, mszobjectlist: ::windows_sys::core::PSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: super::super::Foundation::BOOL) -> i32; | |
92 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
93 | #[cfg(feature = "Win32_Foundation")] | |
94 | pub fn PdhEnumObjectsHW(hdatasource: isize, szmachinename: ::windows_sys::core::PCWSTR, mszobjectlist: ::windows_sys::core::PWSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: super::super::Foundation::BOOL) -> i32; | |
95 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
96 | #[cfg(feature = "Win32_Foundation")] | |
97 | pub fn PdhEnumObjectsW(szdatasource: ::windows_sys::core::PCWSTR, szmachinename: ::windows_sys::core::PCWSTR, mszobjectlist: ::windows_sys::core::PWSTR, pcchbuffersize: *mut u32, dwdetaillevel: PERF_DETAIL, brefresh: super::super::Foundation::BOOL) -> i32; | |
98 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
99 | pub fn PdhExpandCounterPathA(szwildcardpath: ::windows_sys::core::PCSTR, mszexpandedpathlist: ::windows_sys::core::PSTR, pcchpathlistlength: *mut u32) -> i32; | |
100 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
101 | pub fn PdhExpandCounterPathW(szwildcardpath: ::windows_sys::core::PCWSTR, mszexpandedpathlist: ::windows_sys::core::PWSTR, pcchpathlistlength: *mut u32) -> i32; | |
102 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
103 | pub fn PdhExpandWildCardPathA(szdatasource: ::windows_sys::core::PCSTR, szwildcardpath: ::windows_sys::core::PCSTR, mszexpandedpathlist: ::windows_sys::core::PSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> i32; | |
104 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
105 | pub fn PdhExpandWildCardPathHA(hdatasource: isize, szwildcardpath: ::windows_sys::core::PCSTR, mszexpandedpathlist: ::windows_sys::core::PSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> i32; | |
106 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
107 | pub fn PdhExpandWildCardPathHW(hdatasource: isize, szwildcardpath: ::windows_sys::core::PCWSTR, mszexpandedpathlist: ::windows_sys::core::PWSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> i32; | |
108 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
109 | pub fn PdhExpandWildCardPathW(szdatasource: ::windows_sys::core::PCWSTR, szwildcardpath: ::windows_sys::core::PCWSTR, mszexpandedpathlist: ::windows_sys::core::PWSTR, pcchpathlistlength: *mut u32, dwflags: u32) -> i32; | |
110 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 FG |
111 | #[cfg(feature = "Win32_Foundation")] |
112 | pub 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) -> i32; | |
04454e1e | 113 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
114 | #[cfg(feature = "Win32_Foundation")] |
115 | pub fn PdhGetCounterInfoA(hcounter: isize, bretrieveexplaintext: super::super::Foundation::BOOLEAN, pdwbuffersize: *mut u32, lpbuffer: *mut PDH_COUNTER_INFO_A) -> i32; | |
04454e1e | 116 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
117 | #[cfg(feature = "Win32_Foundation")] |
118 | pub fn PdhGetCounterInfoW(hcounter: isize, bretrieveexplaintext: super::super::Foundation::BOOLEAN, pdwbuffersize: *mut u32, lpbuffer: *mut PDH_COUNTER_INFO_W) -> i32; | |
04454e1e | 119 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 120 | pub fn PdhGetCounterTimeBase(hcounter: isize, ptimebase: *mut i64) -> i32; |
04454e1e FG |
121 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
122 | pub fn PdhGetDataSourceTimeRangeA(szdatasource: ::windows_sys::core::PCSTR, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> i32; | |
123 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
5e7ed085 | 124 | pub fn PdhGetDataSourceTimeRangeH(hdatasource: isize, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> i32; |
04454e1e FG |
125 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
126 | pub fn PdhGetDataSourceTimeRangeW(szdatasource: ::windows_sys::core::PCWSTR, pdwnumentries: *mut u32, pinfo: *mut PDH_TIME_INFO, pdwbuffersize: *mut u32) -> i32; | |
127 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
128 | pub fn PdhGetDefaultPerfCounterA(szdatasource: ::windows_sys::core::PCSTR, szmachinename: ::windows_sys::core::PCSTR, szobjectname: ::windows_sys::core::PCSTR, szdefaultcountername: ::windows_sys::core::PSTR, pcchbuffersize: *mut u32) -> i32; | |
129 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
130 | pub fn PdhGetDefaultPerfCounterHA(hdatasource: isize, szmachinename: ::windows_sys::core::PCSTR, szobjectname: ::windows_sys::core::PCSTR, szdefaultcountername: ::windows_sys::core::PSTR, pcchbuffersize: *mut u32) -> i32; | |
131 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
132 | pub fn PdhGetDefaultPerfCounterHW(hdatasource: isize, szmachinename: ::windows_sys::core::PCWSTR, szobjectname: ::windows_sys::core::PCWSTR, szdefaultcountername: ::windows_sys::core::PWSTR, pcchbuffersize: *mut u32) -> i32; | |
133 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
134 | pub fn PdhGetDefaultPerfCounterW(szdatasource: ::windows_sys::core::PCWSTR, szmachinename: ::windows_sys::core::PCWSTR, szobjectname: ::windows_sys::core::PCWSTR, szdefaultcountername: ::windows_sys::core::PWSTR, pcchbuffersize: *mut u32) -> i32; | |
135 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
136 | pub fn PdhGetDefaultPerfObjectA(szdatasource: ::windows_sys::core::PCSTR, szmachinename: ::windows_sys::core::PCSTR, szdefaultobjectname: ::windows_sys::core::PSTR, pcchbuffersize: *mut u32) -> i32; | |
137 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
138 | pub fn PdhGetDefaultPerfObjectHA(hdatasource: isize, szmachinename: ::windows_sys::core::PCSTR, szdefaultobjectname: ::windows_sys::core::PSTR, pcchbuffersize: *mut u32) -> i32; | |
139 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
140 | pub fn PdhGetDefaultPerfObjectHW(hdatasource: isize, szmachinename: ::windows_sys::core::PCWSTR, szdefaultobjectname: ::windows_sys::core::PWSTR, pcchbuffersize: *mut u32) -> i32; | |
141 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
142 | pub fn PdhGetDefaultPerfObjectW(szdatasource: ::windows_sys::core::PCWSTR, szmachinename: ::windows_sys::core::PCWSTR, szdefaultobjectname: ::windows_sys::core::PWSTR, pcchbuffersize: *mut u32) -> i32; | |
143 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
5e7ed085 | 144 | pub fn PdhGetDllVersion(lpdwversion: *mut PDH_DLL_VERSION) -> i32; |
04454e1e | 145 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 146 | pub fn PdhGetFormattedCounterArrayA(hcounter: isize, dwformat: PDH_FMT, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: *mut PDH_FMT_COUNTERVALUE_ITEM_A) -> i32; |
04454e1e | 147 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 148 | pub fn PdhGetFormattedCounterArrayW(hcounter: isize, dwformat: PDH_FMT, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: *mut PDH_FMT_COUNTERVALUE_ITEM_W) -> i32; |
04454e1e | 149 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 150 | pub fn PdhGetFormattedCounterValue(hcounter: isize, dwformat: PDH_FMT, lpdwtype: *mut u32, pvalue: *mut PDH_FMT_COUNTERVALUE) -> i32; |
04454e1e | 151 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 152 | pub fn PdhGetLogFileSize(hlog: isize, llsize: *mut i64) -> i32; |
04454e1e | 153 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 154 | pub fn PdhGetLogSetGUID(hlog: isize, pguid: *mut ::windows_sys::core::GUID, prunid: *mut i32) -> i32; |
04454e1e | 155 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
156 | #[cfg(feature = "Win32_Foundation")] |
157 | pub fn PdhGetRawCounterArrayA(hcounter: isize, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: *mut PDH_RAW_COUNTER_ITEM_A) -> i32; | |
04454e1e | 158 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
159 | #[cfg(feature = "Win32_Foundation")] |
160 | pub fn PdhGetRawCounterArrayW(hcounter: isize, lpdwbuffersize: *mut u32, lpdwitemcount: *mut u32, itembuffer: *mut PDH_RAW_COUNTER_ITEM_W) -> i32; | |
04454e1e | 161 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
162 | #[cfg(feature = "Win32_Foundation")] |
163 | pub fn PdhGetRawCounterValue(hcounter: isize, lpdwtype: *mut u32, pvalue: *mut PDH_RAW_COUNTER) -> i32; | |
04454e1e | 164 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
165 | #[cfg(feature = "Win32_Foundation")] |
166 | pub fn PdhIsRealTimeQuery(hquery: isize) -> super::super::Foundation::BOOL; | |
04454e1e FG |
167 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
168 | pub fn PdhLookupPerfIndexByNameA(szmachinename: ::windows_sys::core::PCSTR, sznamebuffer: ::windows_sys::core::PCSTR, pdwindex: *mut u32) -> i32; | |
169 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
170 | pub fn PdhLookupPerfIndexByNameW(szmachinename: ::windows_sys::core::PCWSTR, sznamebuffer: ::windows_sys::core::PCWSTR, pdwindex: *mut u32) -> i32; | |
171 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
172 | pub fn PdhLookupPerfNameByIndexA(szmachinename: ::windows_sys::core::PCSTR, dwnameindex: u32, sznamebuffer: ::windows_sys::core::PSTR, pcchnamebuffersize: *mut u32) -> i32; | |
173 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
174 | pub fn PdhLookupPerfNameByIndexW(szmachinename: ::windows_sys::core::PCWSTR, dwnameindex: u32, sznamebuffer: ::windows_sys::core::PWSTR, pcchnamebuffersize: *mut u32) -> i32; | |
175 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
176 | pub fn PdhMakeCounterPathA(pcounterpathelements: *const PDH_COUNTER_PATH_ELEMENTS_A, szfullpathbuffer: ::windows_sys::core::PSTR, pcchbuffersize: *mut u32, dwflags: PDH_PATH_FLAGS) -> i32; | |
177 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
178 | pub fn PdhMakeCounterPathW(pcounterpathelements: *const PDH_COUNTER_PATH_ELEMENTS_W, szfullpathbuffer: ::windows_sys::core::PWSTR, pcchbuffersize: *mut u32, dwflags: PDH_PATH_FLAGS) -> i32; | |
179 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
180 | pub fn PdhOpenLogA(szlogfilename: ::windows_sys::core::PCSTR, dwaccessflags: PDH_LOG, lpdwlogtype: *mut PDH_LOG_TYPE, hquery: isize, dwmaxsize: u32, szusercaption: ::windows_sys::core::PCSTR, phlog: *mut isize) -> i32; | |
181 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
182 | pub fn PdhOpenLogW(szlogfilename: ::windows_sys::core::PCWSTR, dwaccessflags: PDH_LOG, lpdwlogtype: *mut PDH_LOG_TYPE, hquery: isize, dwmaxsize: u32, szusercaption: ::windows_sys::core::PCWSTR, phlog: *mut isize) -> i32; | |
183 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
184 | pub fn PdhOpenQueryA(szdatasource: ::windows_sys::core::PCSTR, dwuserdata: usize, phquery: *mut isize) -> i32; | |
185 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
5e7ed085 | 186 | pub fn PdhOpenQueryH(hdatasource: isize, dwuserdata: usize, phquery: *mut isize) -> i32; |
04454e1e FG |
187 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
188 | pub fn PdhOpenQueryW(szdatasource: ::windows_sys::core::PCWSTR, dwuserdata: usize, phquery: *mut isize) -> i32; | |
189 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
190 | pub fn PdhParseCounterPathA(szfullpathbuffer: ::windows_sys::core::PCSTR, pcounterpathelements: *mut PDH_COUNTER_PATH_ELEMENTS_A, pdwbuffersize: *mut u32, dwflags: u32) -> i32; | |
191 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
192 | pub fn PdhParseCounterPathW(szfullpathbuffer: ::windows_sys::core::PCWSTR, pcounterpathelements: *mut PDH_COUNTER_PATH_ELEMENTS_W, pdwbuffersize: *mut u32, dwflags: u32) -> i32; | |
193 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
194 | pub fn PdhParseInstanceNameA(szinstancestring: ::windows_sys::core::PCSTR, szinstancename: ::windows_sys::core::PSTR, pcchinstancenamelength: *mut u32, szparentname: ::windows_sys::core::PSTR, pcchparentnamelength: *mut u32, lpindex: *mut u32) -> i32; | |
195 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
196 | pub fn PdhParseInstanceNameW(szinstancestring: ::windows_sys::core::PCWSTR, szinstancename: ::windows_sys::core::PWSTR, pcchinstancenamelength: *mut u32, szparentname: ::windows_sys::core::PWSTR, pcchparentnamelength: *mut u32, lpindex: *mut u32) -> i32; | |
197 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 FG |
198 | #[cfg(feature = "Win32_Foundation")] |
199 | pub fn PdhReadRawLogRecord(hlog: isize, ftrecord: super::super::Foundation::FILETIME, prawlogrecord: *mut PDH_RAW_LOG_RECORD, pdwbufferlength: *mut u32) -> i32; | |
04454e1e | 200 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 201 | pub fn PdhRemoveCounter(hcounter: isize) -> i32; |
04454e1e | 202 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 203 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
204 | pub fn PdhSelectDataSourceA(hwndowner: super::super::Foundation::HWND, dwflags: PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource: ::windows_sys::core::PSTR, pcchbufferlength: *mut u32) -> i32; |
205 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 206 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
207 | pub fn PdhSelectDataSourceW(hwndowner: super::super::Foundation::HWND, dwflags: PDH_SELECT_DATA_SOURCE_FLAGS, szdatasource: ::windows_sys::core::PWSTR, pcchbufferlength: *mut u32) -> i32; |
208 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
5e7ed085 | 209 | pub fn PdhSetCounterScaleFactor(hcounter: isize, lfactor: i32) -> i32; |
04454e1e | 210 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 211 | pub fn PdhSetDefaultRealTimeDataSource(dwdatasourceid: REAL_TIME_DATA_SOURCE_ID_FLAGS) -> i32; |
04454e1e | 212 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 213 | pub fn PdhSetLogSetRunID(hlog: isize, runid: i32) -> i32; |
04454e1e | 214 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 215 | pub fn PdhSetQueryTimeRange(hquery: isize, pinfo: *const PDH_TIME_INFO) -> i32; |
04454e1e FG |
216 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
217 | pub fn PdhUpdateLogA(hlog: isize, szuserstring: ::windows_sys::core::PCSTR) -> i32; | |
218 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
5e7ed085 | 219 | pub fn PdhUpdateLogFileCatalog(hlog: isize) -> i32; |
04454e1e FG |
220 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
221 | pub fn PdhUpdateLogW(hlog: isize, szuserstring: ::windows_sys::core::PCWSTR) -> i32; | |
222 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
223 | pub fn PdhValidatePathA(szfullpathbuffer: ::windows_sys::core::PCSTR) -> i32; | |
224 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
225 | pub fn PdhValidatePathExA(hdatasource: isize, szfullpathbuffer: ::windows_sys::core::PCSTR) -> i32; | |
226 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
227 | pub fn PdhValidatePathExW(hdatasource: isize, szfullpathbuffer: ::windows_sys::core::PCWSTR) -> i32; | |
228 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
229 | pub fn PdhValidatePathW(szfullpathbuffer: ::windows_sys::core::PCWSTR) -> i32; | |
230 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
231 | pub fn PdhVerifySQLDBA(szdatasource: ::windows_sys::core::PCSTR) -> i32; | |
232 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
233 | pub fn PdhVerifySQLDBW(szdatasource: ::windows_sys::core::PCWSTR) -> i32; | |
234 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
5e7ed085 | 235 | pub fn PerfAddCounters(hquery: PerfQueryHandle, pcounters: *const PERF_COUNTER_IDENTIFIER, cbcounters: u32) -> u32; |
04454e1e | 236 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
237 | #[cfg(feature = "Win32_Foundation")] |
238 | pub fn PerfCloseQueryHandle(hquery: super::super::Foundation::HANDLE) -> u32; | |
04454e1e FG |
239 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
240 | pub fn PerfCreateInstance(providerhandle: PerfProviderHandle, countersetguid: *const ::windows_sys::core::GUID, name: ::windows_sys::core::PCWSTR, id: u32) -> *mut PERF_COUNTERSET_INSTANCE; | |
241 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 FG |
242 | #[cfg(feature = "Win32_Foundation")] |
243 | pub fn PerfDecrementULongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32; | |
04454e1e | 244 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
245 | #[cfg(feature = "Win32_Foundation")] |
246 | pub fn PerfDecrementULongLongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32; | |
04454e1e | 247 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 248 | pub fn PerfDeleteCounters(hquery: PerfQueryHandle, pcounters: *const PERF_COUNTER_IDENTIFIER, cbcounters: u32) -> u32; |
04454e1e | 249 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 250 | pub fn PerfDeleteInstance(provider: PerfProviderHandle, instanceblock: *const PERF_COUNTERSET_INSTANCE) -> u32; |
04454e1e FG |
251 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
252 | pub fn PerfEnumerateCounterSet(szmachine: ::windows_sys::core::PCWSTR, pcountersetids: *mut ::windows_sys::core::GUID, ccountersetids: u32, pccountersetidsactual: *mut u32) -> u32; | |
253 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
254 | pub fn PerfEnumerateCounterSetInstances(szmachine: ::windows_sys::core::PCWSTR, pcountersetid: *const ::windows_sys::core::GUID, pinstances: *mut PERF_INSTANCE_HEADER, cbinstances: u32, pcbinstancesactual: *mut u32) -> u32; | |
255 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 FG |
256 | #[cfg(feature = "Win32_Foundation")] |
257 | pub fn PerfIncrementULongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32; | |
04454e1e | 258 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
259 | #[cfg(feature = "Win32_Foundation")] |
260 | pub fn PerfIncrementULongLongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32; | |
04454e1e FG |
261 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
262 | pub fn PerfOpenQueryHandle(szmachine: ::windows_sys::core::PCWSTR, phquery: *mut PerfQueryHandle) -> u32; | |
263 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 FG |
264 | #[cfg(feature = "Win32_Foundation")] |
265 | pub fn PerfQueryCounterData(hquery: PerfQueryHandle, pcounterblock: *mut PERF_DATA_HEADER, cbcounterblock: u32, pcbcounterblockactual: *mut u32) -> u32; | |
04454e1e | 266 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 267 | pub fn PerfQueryCounterInfo(hquery: PerfQueryHandle, pcounters: *mut PERF_COUNTER_IDENTIFIER, cbcounters: u32, pcbcountersactual: *mut u32) -> u32; |
04454e1e FG |
268 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
269 | pub fn PerfQueryCounterSetRegistrationInfo(szmachine: ::windows_sys::core::PCWSTR, pcountersetid: *const ::windows_sys::core::GUID, requestcode: PerfRegInfoType, requestlangid: u32, pbreginfo: *mut u8, cbreginfo: u32, pcbreginfoactual: *mut u32) -> u32; | |
270 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 271 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
272 | pub fn PerfQueryInstance(providerhandle: super::super::Foundation::HANDLE, countersetguid: *const ::windows_sys::core::GUID, name: ::windows_sys::core::PCWSTR, id: u32) -> *mut PERF_COUNTERSET_INSTANCE; |
273 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 FG |
274 | #[cfg(feature = "Win32_Foundation")] |
275 | pub fn PerfSetCounterRefValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, address: *const ::core::ffi::c_void) -> u32; | |
04454e1e | 276 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
277 | #[cfg(feature = "Win32_Foundation")] |
278 | pub fn PerfSetCounterSetInfo(providerhandle: super::super::Foundation::HANDLE, template: *mut PERF_COUNTERSET_INFO, templatesize: u32) -> u32; | |
04454e1e | 279 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
280 | #[cfg(feature = "Win32_Foundation")] |
281 | pub fn PerfSetULongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u32) -> u32; | |
04454e1e | 282 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
283 | #[cfg(feature = "Win32_Foundation")] |
284 | pub fn PerfSetULongLongCounterValue(provider: super::super::Foundation::HANDLE, instance: *mut PERF_COUNTERSET_INSTANCE, counterid: u32, value: u64) -> u32; | |
04454e1e | 285 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 286 | pub fn PerfStartProvider(providerguid: *const ::windows_sys::core::GUID, controlcallback: PERFLIBREQUEST, phprovider: *mut PerfProviderHandle) -> u32; |
04454e1e | 287 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 288 | pub fn PerfStartProviderEx(providerguid: *const ::windows_sys::core::GUID, providercontext: *const PERF_PROVIDER_CONTEXT, provider: *mut PerfProviderHandle) -> u32; |
04454e1e | 289 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 290 | pub fn PerfStopProvider(providerhandle: PerfProviderHandle) -> u32; |
04454e1e | 291 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
292 | #[cfg(feature = "Win32_Foundation")] |
293 | pub fn QueryPerformanceCounter(lpperformancecount: *mut i64) -> super::super::Foundation::BOOL; | |
04454e1e | 294 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
295 | #[cfg(feature = "Win32_Foundation")] |
296 | pub fn QueryPerformanceFrequency(lpfrequency: *mut i64) -> super::super::Foundation::BOOL; | |
04454e1e FG |
297 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
298 | pub fn RestorePerfRegistryFromFileW(szfilename: ::windows_sys::core::PCWSTR, szlangid: ::windows_sys::core::PCWSTR) -> u32; | |
299 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
300 | pub fn SetServiceAsTrustedA(szreserved: ::windows_sys::core::PCSTR, szservicename: ::windows_sys::core::PCSTR) -> u32; | |
301 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
302 | pub fn SetServiceAsTrustedW(szreserved: ::windows_sys::core::PCWSTR, szservicename: ::windows_sys::core::PCWSTR) -> u32; | |
303 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
304 | #[cfg(feature = "Win32_Foundation")] | |
305 | pub fn UnloadPerfCounterTextStringsA(lpcommandline: ::windows_sys::core::PCSTR, bquietmodearg: super::super::Foundation::BOOL) -> u32; | |
306 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] | |
307 | #[cfg(feature = "Win32_Foundation")] | |
308 | pub fn UnloadPerfCounterTextStringsW(lpcommandline: ::windows_sys::core::PCWSTR, bquietmodearg: super::super::Foundation::BOOL) -> u32; | |
309 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
310 | pub fn UpdatePerfNameFilesA(sznewctrfilepath: ::windows_sys::core::PCSTR, sznewhlpfilepath: ::windows_sys::core::PCSTR, szlanguageid: ::windows_sys::core::PCSTR, dwflags: usize) -> u32; | |
311 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
312 | pub fn UpdatePerfNameFilesW(sznewctrfilepath: ::windows_sys::core::PCWSTR, sznewhlpfilepath: ::windows_sys::core::PCWSTR, szlanguageid: ::windows_sys::core::PCWSTR, dwflags: usize) -> u32; | |
5e7ed085 FG |
313 | } |
314 | pub const AppearPropPage: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3835118057, data2: 37800, data3: 19121, data4: [142, 150, 191, 68, 130, 40, 46, 156] }; | |
04454e1e | 315 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 316 | pub type AutoPathFormat = i32; |
04454e1e | 317 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 318 | pub const plaNone: AutoPathFormat = 0i32; |
04454e1e | 319 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 320 | pub const plaPattern: AutoPathFormat = 1i32; |
04454e1e | 321 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 322 | pub const plaComputer: AutoPathFormat = 2i32; |
04454e1e | 323 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 324 | pub const plaMonthDayHour: AutoPathFormat = 256i32; |
04454e1e | 325 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 326 | pub const plaSerialNumber: AutoPathFormat = 512i32; |
04454e1e | 327 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 328 | pub const plaYearDayOfYear: AutoPathFormat = 1024i32; |
04454e1e | 329 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 330 | pub const plaYearMonth: AutoPathFormat = 2048i32; |
04454e1e | 331 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 332 | pub const plaYearMonthDay: AutoPathFormat = 4096i32; |
04454e1e | 333 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 334 | pub const plaYearMonthDayHour: AutoPathFormat = 8192i32; |
04454e1e | 335 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
336 | pub const plaMonthDayHourMinute: AutoPathFormat = 16384i32; |
337 | pub const BootTraceSession: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946872, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
338 | pub const BootTraceSessionCollection: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946873, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
04454e1e | 339 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 340 | pub type ClockType = i32; |
04454e1e | 341 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 342 | pub const plaTimeStamp: ClockType = 0i32; |
04454e1e | 343 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 344 | pub const plaPerformance: ClockType = 1i32; |
04454e1e | 345 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 346 | pub const plaSystem: ClockType = 2i32; |
04454e1e | 347 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 348 | pub const plaCycle: ClockType = 3i32; |
04454e1e | 349 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 350 | pub type CommitMode = i32; |
04454e1e | 351 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 352 | pub const plaCreateNew: CommitMode = 1i32; |
04454e1e | 353 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 354 | pub const plaModify: CommitMode = 2i32; |
04454e1e | 355 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 356 | pub const plaCreateOrModify: CommitMode = 3i32; |
04454e1e | 357 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 358 | pub const plaUpdateRunningInstance: CommitMode = 16i32; |
04454e1e | 359 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 360 | pub const plaFlushTrace: CommitMode = 32i32; |
04454e1e | 361 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
362 | pub const plaValidateOnly: CommitMode = 4096i32; |
363 | pub const CounterItem: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3302152416, data2: 53725, data3: 4558, data4: [148, 15, 0, 128, 41, 0, 67, 72] }; | |
364 | pub const CounterItem2: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 1125739618, data2: 49951, data3: 19683, data4: [160, 46, 121, 239, 224, 246, 165, 37] }; | |
04454e1e | 365 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
366 | pub type CounterPathCallBack = ::core::option::Option<unsafe extern "system" fn(param0: usize) -> i32>; |
367 | pub const CounterPropPage: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3482617185, data2: 60904, data3: 4558, data4: [148, 30, 0, 128, 41, 0, 67, 71] }; | |
368 | pub const Counters: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2997905106, data2: 10924, data3: 4559, data4: [148, 47, 0, 128, 41, 0, 67, 71] }; | |
369 | pub type DICounterItem = *mut ::core::ffi::c_void; | |
370 | pub const DIID_DICounterItem: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3230420978, data2: 3630, data3: 4559, data4: [148, 44, 0, 128, 41, 0, 67, 71] }; | |
371 | pub const DIID_DILogFileItem: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2366193660, data2: 63351, data3: 18711, data4: [130, 209, 131, 63, 188, 84, 197, 143] }; | |
372 | pub const DIID_DISystemMonitor: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 332873089, data2: 49966, data3: 4559, data4: [147, 152, 0, 170, 0, 163, 221, 234] }; | |
373 | pub const DIID_DISystemMonitorEvents: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2224527664, data2: 19123, data3: 4559, data4: [148, 58, 0, 128, 41, 0, 67, 71] }; | |
374 | pub const DIID_DISystemMonitorInternal: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 424587842, data2: 49964, data3: 4559, data4: [147, 152, 0, 170, 0, 163, 221, 234] }; | |
375 | pub type DILogFileItem = *mut ::core::ffi::c_void; | |
376 | pub type DISystemMonitor = *mut ::core::ffi::c_void; | |
377 | pub type DISystemMonitorEvents = *mut ::core::ffi::c_void; | |
378 | pub type DISystemMonitorInternal = *mut ::core::ffi::c_void; | |
379 | pub const DataCollectorSet: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946849, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
380 | pub const DataCollectorSetCollection: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946853, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
04454e1e | 381 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 382 | pub type DataCollectorSetStatus = i32; |
04454e1e | 383 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 384 | pub const plaStopped: DataCollectorSetStatus = 0i32; |
04454e1e | 385 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 386 | pub const plaRunning: DataCollectorSetStatus = 1i32; |
04454e1e | 387 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 388 | pub const plaCompiling: DataCollectorSetStatus = 2i32; |
04454e1e | 389 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 390 | pub const plaPending: DataCollectorSetStatus = 3i32; |
04454e1e | 391 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 392 | pub const plaUndefined: DataCollectorSetStatus = 4i32; |
04454e1e | 393 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 394 | pub type DataCollectorType = i32; |
04454e1e | 395 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 396 | pub const plaPerformanceCounter: DataCollectorType = 0i32; |
04454e1e | 397 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 398 | pub const plaTrace: DataCollectorType = 1i32; |
04454e1e | 399 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 400 | pub const plaConfiguration: DataCollectorType = 2i32; |
04454e1e | 401 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 402 | pub const plaAlert: DataCollectorType = 3i32; |
04454e1e | 403 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 404 | pub const plaApiTrace: DataCollectorType = 4i32; |
04454e1e | 405 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 406 | pub type DataManagerSteps = i32; |
04454e1e | 407 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 408 | pub const plaCreateReport: DataManagerSteps = 1i32; |
04454e1e | 409 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 410 | pub const plaRunRules: DataManagerSteps = 2i32; |
04454e1e | 411 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 412 | pub const plaCreateHtml: DataManagerSteps = 4i32; |
04454e1e | 413 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 414 | pub const plaFolderActions: DataManagerSteps = 8i32; |
04454e1e | 415 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 416 | pub const plaResourceFreeing: DataManagerSteps = 16i32; |
04454e1e | 417 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 418 | pub type DataSourceTypeConstants = i32; |
04454e1e | 419 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 420 | pub const sysmonNullDataSource: DataSourceTypeConstants = -1i32; |
04454e1e | 421 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 422 | pub const sysmonCurrentActivity: DataSourceTypeConstants = 1i32; |
04454e1e | 423 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 424 | pub const sysmonLogFiles: DataSourceTypeConstants = 2i32; |
04454e1e | 425 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 426 | pub const sysmonSqlLog: DataSourceTypeConstants = 3i32; |
04454e1e | 427 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 428 | pub type DisplayTypeConstants = i32; |
04454e1e | 429 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 430 | pub const sysmonLineGraph: DisplayTypeConstants = 1i32; |
04454e1e | 431 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 432 | pub const sysmonHistogram: DisplayTypeConstants = 2i32; |
04454e1e | 433 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 434 | pub const sysmonReport: DisplayTypeConstants = 3i32; |
04454e1e | 435 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 436 | pub const sysmonChartArea: DisplayTypeConstants = 4i32; |
04454e1e | 437 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 438 | pub const sysmonChartStackedArea: DisplayTypeConstants = 5i32; |
04454e1e | 439 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 440 | pub type FileFormat = i32; |
04454e1e | 441 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 442 | pub const plaCommaSeparated: FileFormat = 0i32; |
04454e1e | 443 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 444 | pub const plaTabSeparated: FileFormat = 1i32; |
04454e1e | 445 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 446 | pub const plaSql: FileFormat = 2i32; |
04454e1e | 447 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 448 | pub const plaBinary: FileFormat = 3i32; |
04454e1e | 449 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 450 | pub type FolderActionSteps = i32; |
04454e1e | 451 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 452 | pub const plaCreateCab: FolderActionSteps = 1i32; |
04454e1e | 453 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 454 | pub const plaDeleteData: FolderActionSteps = 2i32; |
04454e1e | 455 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 456 | pub const plaSendCab: FolderActionSteps = 4i32; |
04454e1e | 457 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 458 | pub const plaDeleteCab: FolderActionSteps = 8i32; |
04454e1e | 459 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
460 | pub const plaDeleteReport: FolderActionSteps = 16i32; |
461 | pub const GeneralPropPage: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3286619090, data2: 6659, data3: 4559, data4: [148, 45, 0, 128, 41, 0, 67, 71] }; | |
462 | pub const GraphPropPage: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3286619091, data2: 6659, data3: 4559, data4: [148, 45, 0, 128, 41, 0, 67, 71] }; | |
04454e1e | 463 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
464 | pub const H_WBEM_DATASOURCE: i32 = -1i32; |
465 | pub type IAlertDataCollector = *mut ::core::ffi::c_void; | |
466 | pub type IApiTracingDataCollector = *mut ::core::ffi::c_void; | |
467 | pub type IConfigurationDataCollector = *mut ::core::ffi::c_void; | |
468 | pub type ICounterItem = *mut ::core::ffi::c_void; | |
469 | pub type ICounterItem2 = *mut ::core::ffi::c_void; | |
470 | pub type ICounters = *mut ::core::ffi::c_void; | |
471 | pub type IDataCollector = *mut ::core::ffi::c_void; | |
472 | pub type IDataCollectorCollection = *mut ::core::ffi::c_void; | |
473 | pub type IDataCollectorSet = *mut ::core::ffi::c_void; | |
474 | pub type IDataCollectorSetCollection = *mut ::core::ffi::c_void; | |
475 | pub type IDataManager = *mut ::core::ffi::c_void; | |
476 | pub type IFolderAction = *mut ::core::ffi::c_void; | |
477 | pub type IFolderActionCollection = *mut ::core::ffi::c_void; | |
478 | pub type ILogFileItem = *mut ::core::ffi::c_void; | |
479 | pub type ILogFiles = *mut ::core::ffi::c_void; | |
480 | pub type IPerformanceCounterDataCollector = *mut ::core::ffi::c_void; | |
481 | pub type ISchedule = *mut ::core::ffi::c_void; | |
482 | pub type IScheduleCollection = *mut ::core::ffi::c_void; | |
483 | pub type ISystemMonitor = *mut ::core::ffi::c_void; | |
484 | pub type ISystemMonitor2 = *mut ::core::ffi::c_void; | |
485 | pub type ISystemMonitorEvents = *mut ::core::ffi::c_void; | |
486 | pub type ITraceDataCollector = *mut ::core::ffi::c_void; | |
487 | pub type ITraceDataProvider = *mut ::core::ffi::c_void; | |
488 | pub type ITraceDataProviderCollection = *mut ::core::ffi::c_void; | |
489 | pub type IValueMap = *mut ::core::ffi::c_void; | |
490 | pub type IValueMapItem = *mut ::core::ffi::c_void; | |
491 | pub const LIBID_SystemMonitor: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 460799554, data2: 9481, data3: 4559, data4: [148, 47, 0, 128, 41, 0, 67, 71] }; | |
492 | pub const LegacyDataCollectorSet: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946854, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
493 | pub const LegacyDataCollectorSetCollection: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946855, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
494 | pub const LegacyTraceSession: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946856, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
495 | pub const LegacyTraceSessionCollection: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946857, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
496 | pub const LogFileItem: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 384588776, data2: 57235, data3: 16951, data4: [148, 228, 158, 233, 24, 17, 29, 113] }; | |
497 | pub const LogFiles: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 657840637, data2: 63161, data3: 20249, data4: [165, 217, 226, 208, 104, 88, 75, 197] }; | |
04454e1e | 498 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 499 | pub const MAX_COUNTER_PATH: u32 = 256u32; |
04454e1e | 500 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 501 | pub const MAX_PERF_OBJECTS_IN_QUERY_FUNCTION: i32 = 64i32; |
04454e1e | 502 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 503 | pub const PDH_ACCESS_DENIED: i32 = -1073738789i32; |
04454e1e | 504 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 505 | pub const PDH_ASYNC_QUERY_TIMEOUT: i32 = -2147481637i32; |
04454e1e | 506 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
507 | pub const PDH_BINARY_LOG_CORRUPT: i32 = -1073738761i32; |
508 | #[repr(C)] | |
04454e1e | 509 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
510 | #[cfg(feature = "Win32_Foundation")] |
511 | pub struct PDH_BROWSE_DLG_CONFIG_A { | |
512 | pub _bitfield: u32, | |
513 | pub hWndOwner: super::super::Foundation::HWND, | |
04454e1e FG |
514 | pub szDataSource: ::windows_sys::core::PSTR, |
515 | pub szReturnPathBuffer: ::windows_sys::core::PSTR, | |
5e7ed085 FG |
516 | pub cchReturnPathLength: u32, |
517 | pub pCallBack: CounterPathCallBack, | |
518 | pub dwCallBackArg: usize, | |
519 | pub CallBackStatus: i32, | |
520 | pub dwDefaultDetailLevel: PERF_DETAIL, | |
04454e1e | 521 | pub szDialogBoxCaption: ::windows_sys::core::PSTR, |
5e7ed085 FG |
522 | } |
523 | #[cfg(feature = "Win32_Foundation")] | |
524 | impl ::core::marker::Copy for PDH_BROWSE_DLG_CONFIG_A {} | |
525 | #[cfg(feature = "Win32_Foundation")] | |
526 | impl ::core::clone::Clone for PDH_BROWSE_DLG_CONFIG_A { | |
527 | fn clone(&self) -> Self { | |
528 | *self | |
529 | } | |
530 | } | |
531 | #[repr(C)] | |
04454e1e | 532 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
533 | #[cfg(feature = "Win32_Foundation")] |
534 | pub struct PDH_BROWSE_DLG_CONFIG_HA { | |
535 | pub _bitfield: u32, | |
536 | pub hWndOwner: super::super::Foundation::HWND, | |
537 | pub hDataSource: isize, | |
04454e1e | 538 | pub szReturnPathBuffer: ::windows_sys::core::PSTR, |
5e7ed085 FG |
539 | pub cchReturnPathLength: u32, |
540 | pub pCallBack: CounterPathCallBack, | |
541 | pub dwCallBackArg: usize, | |
542 | pub CallBackStatus: i32, | |
543 | pub dwDefaultDetailLevel: PERF_DETAIL, | |
04454e1e | 544 | pub szDialogBoxCaption: ::windows_sys::core::PSTR, |
5e7ed085 FG |
545 | } |
546 | #[cfg(feature = "Win32_Foundation")] | |
547 | impl ::core::marker::Copy for PDH_BROWSE_DLG_CONFIG_HA {} | |
548 | #[cfg(feature = "Win32_Foundation")] | |
549 | impl ::core::clone::Clone for PDH_BROWSE_DLG_CONFIG_HA { | |
550 | fn clone(&self) -> Self { | |
551 | *self | |
552 | } | |
553 | } | |
554 | #[repr(C)] | |
04454e1e | 555 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
556 | #[cfg(feature = "Win32_Foundation")] |
557 | pub struct PDH_BROWSE_DLG_CONFIG_HW { | |
558 | pub _bitfield: u32, | |
559 | pub hWndOwner: super::super::Foundation::HWND, | |
560 | pub hDataSource: isize, | |
04454e1e | 561 | pub szReturnPathBuffer: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
562 | pub cchReturnPathLength: u32, |
563 | pub pCallBack: CounterPathCallBack, | |
564 | pub dwCallBackArg: usize, | |
565 | pub CallBackStatus: i32, | |
566 | pub dwDefaultDetailLevel: PERF_DETAIL, | |
04454e1e | 567 | pub szDialogBoxCaption: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
568 | } |
569 | #[cfg(feature = "Win32_Foundation")] | |
570 | impl ::core::marker::Copy for PDH_BROWSE_DLG_CONFIG_HW {} | |
571 | #[cfg(feature = "Win32_Foundation")] | |
572 | impl ::core::clone::Clone for PDH_BROWSE_DLG_CONFIG_HW { | |
573 | fn clone(&self) -> Self { | |
574 | *self | |
575 | } | |
576 | } | |
577 | #[repr(C)] | |
04454e1e | 578 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
579 | #[cfg(feature = "Win32_Foundation")] |
580 | pub struct PDH_BROWSE_DLG_CONFIG_W { | |
581 | pub _bitfield: u32, | |
582 | pub hWndOwner: super::super::Foundation::HWND, | |
04454e1e FG |
583 | pub szDataSource: ::windows_sys::core::PWSTR, |
584 | pub szReturnPathBuffer: ::windows_sys::core::PWSTR, | |
5e7ed085 FG |
585 | pub cchReturnPathLength: u32, |
586 | pub pCallBack: CounterPathCallBack, | |
587 | pub dwCallBackArg: usize, | |
588 | pub CallBackStatus: i32, | |
589 | pub dwDefaultDetailLevel: PERF_DETAIL, | |
04454e1e | 590 | pub szDialogBoxCaption: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
591 | } |
592 | #[cfg(feature = "Win32_Foundation")] | |
593 | impl ::core::marker::Copy for PDH_BROWSE_DLG_CONFIG_W {} | |
594 | #[cfg(feature = "Win32_Foundation")] | |
595 | impl ::core::clone::Clone for PDH_BROWSE_DLG_CONFIG_W { | |
596 | fn clone(&self) -> Self { | |
597 | *self | |
598 | } | |
599 | } | |
04454e1e | 600 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 601 | pub const PDH_CALC_NEGATIVE_DENOMINATOR: i32 = -2147481642i32; |
04454e1e | 602 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 603 | pub const PDH_CALC_NEGATIVE_TIMEBASE: i32 = -2147481641i32; |
04454e1e | 604 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 605 | pub const PDH_CALC_NEGATIVE_VALUE: i32 = -2147481640i32; |
04454e1e | 606 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 607 | pub const PDH_CANNOT_CONNECT_MACHINE: i32 = -1073738813i32; |
04454e1e | 608 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 609 | pub const PDH_CANNOT_CONNECT_WMI_SERVER: i32 = -1073738776i32; |
04454e1e | 610 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 611 | pub const PDH_CANNOT_READ_NAME_STRINGS: i32 = -1073738808i32; |
04454e1e | 612 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 613 | pub const PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCE: i32 = -2147481636i32; |
04454e1e | 614 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
615 | pub const PDH_COUNTER_ALREADY_IN_QUERY: i32 = -1073738762i32; |
616 | #[repr(C)] | |
04454e1e | 617 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
618 | pub struct PDH_COUNTER_INFO_A { |
619 | pub dwLength: u32, | |
620 | pub dwType: u32, | |
621 | pub CVersion: u32, | |
622 | pub CStatus: u32, | |
623 | pub lScale: i32, | |
624 | pub lDefaultScale: i32, | |
625 | pub dwUserData: usize, | |
626 | pub dwQueryUserData: usize, | |
04454e1e | 627 | pub szFullPath: ::windows_sys::core::PSTR, |
5e7ed085 | 628 | pub Anonymous: PDH_COUNTER_INFO_A_0, |
04454e1e | 629 | pub szExplainText: ::windows_sys::core::PSTR, |
5e7ed085 FG |
630 | pub DataBuffer: [u32; 1], |
631 | } | |
5e7ed085 | 632 | impl ::core::marker::Copy for PDH_COUNTER_INFO_A {} |
5e7ed085 FG |
633 | impl ::core::clone::Clone for PDH_COUNTER_INFO_A { |
634 | fn clone(&self) -> Self { | |
635 | *self | |
636 | } | |
637 | } | |
638 | #[repr(C)] | |
04454e1e | 639 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
640 | pub union PDH_COUNTER_INFO_A_0 { |
641 | pub DataItemPath: PDH_DATA_ITEM_PATH_ELEMENTS_A, | |
642 | pub CounterPath: PDH_COUNTER_PATH_ELEMENTS_A, | |
643 | pub Anonymous: PDH_COUNTER_INFO_A_0_0, | |
644 | } | |
5e7ed085 | 645 | impl ::core::marker::Copy for PDH_COUNTER_INFO_A_0 {} |
5e7ed085 FG |
646 | impl ::core::clone::Clone for PDH_COUNTER_INFO_A_0 { |
647 | fn clone(&self) -> Self { | |
648 | *self | |
649 | } | |
650 | } | |
651 | #[repr(C)] | |
04454e1e | 652 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 653 | pub struct PDH_COUNTER_INFO_A_0_0 { |
04454e1e FG |
654 | pub szMachineName: ::windows_sys::core::PSTR, |
655 | pub szObjectName: ::windows_sys::core::PSTR, | |
656 | pub szInstanceName: ::windows_sys::core::PSTR, | |
657 | pub szParentInstance: ::windows_sys::core::PSTR, | |
5e7ed085 | 658 | pub dwInstanceIndex: u32, |
04454e1e | 659 | pub szCounterName: ::windows_sys::core::PSTR, |
5e7ed085 | 660 | } |
5e7ed085 | 661 | impl ::core::marker::Copy for PDH_COUNTER_INFO_A_0_0 {} |
5e7ed085 FG |
662 | impl ::core::clone::Clone for PDH_COUNTER_INFO_A_0_0 { |
663 | fn clone(&self) -> Self { | |
664 | *self | |
665 | } | |
666 | } | |
667 | #[repr(C)] | |
04454e1e | 668 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
669 | pub struct PDH_COUNTER_INFO_W { |
670 | pub dwLength: u32, | |
671 | pub dwType: u32, | |
672 | pub CVersion: u32, | |
673 | pub CStatus: u32, | |
674 | pub lScale: i32, | |
675 | pub lDefaultScale: i32, | |
676 | pub dwUserData: usize, | |
677 | pub dwQueryUserData: usize, | |
04454e1e | 678 | pub szFullPath: ::windows_sys::core::PWSTR, |
5e7ed085 | 679 | pub Anonymous: PDH_COUNTER_INFO_W_0, |
04454e1e | 680 | pub szExplainText: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
681 | pub DataBuffer: [u32; 1], |
682 | } | |
5e7ed085 | 683 | impl ::core::marker::Copy for PDH_COUNTER_INFO_W {} |
5e7ed085 FG |
684 | impl ::core::clone::Clone for PDH_COUNTER_INFO_W { |
685 | fn clone(&self) -> Self { | |
686 | *self | |
687 | } | |
688 | } | |
689 | #[repr(C)] | |
04454e1e | 690 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
691 | pub union PDH_COUNTER_INFO_W_0 { |
692 | pub DataItemPath: PDH_DATA_ITEM_PATH_ELEMENTS_W, | |
693 | pub CounterPath: PDH_COUNTER_PATH_ELEMENTS_W, | |
694 | pub Anonymous: PDH_COUNTER_INFO_W_0_0, | |
695 | } | |
5e7ed085 | 696 | impl ::core::marker::Copy for PDH_COUNTER_INFO_W_0 {} |
5e7ed085 FG |
697 | impl ::core::clone::Clone for PDH_COUNTER_INFO_W_0 { |
698 | fn clone(&self) -> Self { | |
699 | *self | |
700 | } | |
701 | } | |
702 | #[repr(C)] | |
04454e1e | 703 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 704 | pub struct PDH_COUNTER_INFO_W_0_0 { |
04454e1e FG |
705 | pub szMachineName: ::windows_sys::core::PWSTR, |
706 | pub szObjectName: ::windows_sys::core::PWSTR, | |
707 | pub szInstanceName: ::windows_sys::core::PWSTR, | |
708 | pub szParentInstance: ::windows_sys::core::PWSTR, | |
5e7ed085 | 709 | pub dwInstanceIndex: u32, |
04454e1e | 710 | pub szCounterName: ::windows_sys::core::PWSTR, |
5e7ed085 | 711 | } |
5e7ed085 | 712 | impl ::core::marker::Copy for PDH_COUNTER_INFO_W_0_0 {} |
5e7ed085 FG |
713 | impl ::core::clone::Clone for PDH_COUNTER_INFO_W_0_0 { |
714 | fn clone(&self) -> Self { | |
715 | *self | |
716 | } | |
717 | } | |
718 | #[repr(C)] | |
04454e1e | 719 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 720 | pub struct PDH_COUNTER_PATH_ELEMENTS_A { |
04454e1e FG |
721 | pub szMachineName: ::windows_sys::core::PSTR, |
722 | pub szObjectName: ::windows_sys::core::PSTR, | |
723 | pub szInstanceName: ::windows_sys::core::PSTR, | |
724 | pub szParentInstance: ::windows_sys::core::PSTR, | |
5e7ed085 | 725 | pub dwInstanceIndex: u32, |
04454e1e | 726 | pub szCounterName: ::windows_sys::core::PSTR, |
5e7ed085 | 727 | } |
5e7ed085 | 728 | impl ::core::marker::Copy for PDH_COUNTER_PATH_ELEMENTS_A {} |
5e7ed085 FG |
729 | impl ::core::clone::Clone for PDH_COUNTER_PATH_ELEMENTS_A { |
730 | fn clone(&self) -> Self { | |
731 | *self | |
732 | } | |
733 | } | |
734 | #[repr(C)] | |
04454e1e | 735 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 736 | pub struct PDH_COUNTER_PATH_ELEMENTS_W { |
04454e1e FG |
737 | pub szMachineName: ::windows_sys::core::PWSTR, |
738 | pub szObjectName: ::windows_sys::core::PWSTR, | |
739 | pub szInstanceName: ::windows_sys::core::PWSTR, | |
740 | pub szParentInstance: ::windows_sys::core::PWSTR, | |
5e7ed085 | 741 | pub dwInstanceIndex: u32, |
04454e1e | 742 | pub szCounterName: ::windows_sys::core::PWSTR, |
5e7ed085 | 743 | } |
5e7ed085 | 744 | impl ::core::marker::Copy for PDH_COUNTER_PATH_ELEMENTS_W {} |
5e7ed085 FG |
745 | impl ::core::clone::Clone for PDH_COUNTER_PATH_ELEMENTS_W { |
746 | fn clone(&self) -> Self { | |
747 | *self | |
748 | } | |
749 | } | |
04454e1e | 750 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 751 | pub const PDH_CSTATUS_BAD_COUNTERNAME: i32 = -1073738816i32; |
04454e1e | 752 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 753 | pub const PDH_CSTATUS_INVALID_DATA: i32 = -1073738822i32; |
04454e1e | 754 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 755 | pub const PDH_CSTATUS_ITEM_NOT_VALIDATED: i32 = -2147481645i32; |
04454e1e | 756 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 757 | pub const PDH_CSTATUS_NEW_DATA: i32 = 1i32; |
04454e1e | 758 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 759 | pub const PDH_CSTATUS_NO_COUNTER: i32 = -1073738823i32; |
04454e1e | 760 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 761 | pub const PDH_CSTATUS_NO_COUNTERNAME: i32 = -1073738817i32; |
04454e1e | 762 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 763 | pub const PDH_CSTATUS_NO_INSTANCE: i32 = -2147481647i32; |
04454e1e | 764 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 765 | pub const PDH_CSTATUS_NO_MACHINE: i32 = -2147481648i32; |
04454e1e | 766 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 767 | pub const PDH_CSTATUS_NO_OBJECT: i32 = -1073738824i32; |
04454e1e | 768 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
769 | pub const PDH_CSTATUS_VALID_DATA: i32 = 0i32; |
770 | #[repr(C)] | |
04454e1e | 771 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 772 | pub struct PDH_DATA_ITEM_PATH_ELEMENTS_A { |
04454e1e | 773 | pub szMachineName: ::windows_sys::core::PSTR, |
5e7ed085 FG |
774 | pub ObjectGUID: ::windows_sys::core::GUID, |
775 | pub dwItemId: u32, | |
04454e1e | 776 | pub szInstanceName: ::windows_sys::core::PSTR, |
5e7ed085 | 777 | } |
5e7ed085 | 778 | impl ::core::marker::Copy for PDH_DATA_ITEM_PATH_ELEMENTS_A {} |
5e7ed085 FG |
779 | impl ::core::clone::Clone for PDH_DATA_ITEM_PATH_ELEMENTS_A { |
780 | fn clone(&self) -> Self { | |
781 | *self | |
782 | } | |
783 | } | |
784 | #[repr(C)] | |
04454e1e | 785 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 786 | pub struct PDH_DATA_ITEM_PATH_ELEMENTS_W { |
04454e1e | 787 | pub szMachineName: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
788 | pub ObjectGUID: ::windows_sys::core::GUID, |
789 | pub dwItemId: u32, | |
04454e1e | 790 | pub szInstanceName: ::windows_sys::core::PWSTR, |
5e7ed085 | 791 | } |
5e7ed085 | 792 | impl ::core::marker::Copy for PDH_DATA_ITEM_PATH_ELEMENTS_W {} |
5e7ed085 FG |
793 | impl ::core::clone::Clone for PDH_DATA_ITEM_PATH_ELEMENTS_W { |
794 | fn clone(&self) -> Self { | |
795 | *self | |
796 | } | |
797 | } | |
04454e1e | 798 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 799 | pub const PDH_DATA_SOURCE_IS_LOG_FILE: i32 = -1073738802i32; |
04454e1e | 800 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 801 | pub const PDH_DATA_SOURCE_IS_REAL_TIME: i32 = -1073738801i32; |
04454e1e | 802 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 803 | pub const PDH_DIALOG_CANCELLED: i32 = -2147481639i32; |
04454e1e | 804 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 805 | pub type PDH_DLL_VERSION = u32; |
04454e1e | 806 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 807 | pub const PDH_CVERSION_WIN50: PDH_DLL_VERSION = 1280u32; |
04454e1e | 808 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 809 | pub const PDH_VERSION: PDH_DLL_VERSION = 1283u32; |
04454e1e | 810 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 811 | pub const PDH_END_OF_LOG_FILE: i32 = -2147481638i32; |
04454e1e | 812 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 813 | pub const PDH_ENTRY_NOT_IN_LOG_FILE: i32 = -1073738803i32; |
04454e1e | 814 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 815 | pub const PDH_FILE_ALREADY_EXISTS: i32 = -1073738798i32; |
04454e1e | 816 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 817 | pub const PDH_FILE_NOT_FOUND: i32 = -1073738799i32; |
04454e1e | 818 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 819 | pub type PDH_FMT = u32; |
04454e1e | 820 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 821 | pub const PDH_FMT_DOUBLE: PDH_FMT = 512u32; |
04454e1e | 822 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 823 | pub const PDH_FMT_LARGE: PDH_FMT = 1024u32; |
04454e1e | 824 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
825 | pub const PDH_FMT_LONG: PDH_FMT = 256u32; |
826 | #[repr(C)] | |
04454e1e | 827 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
828 | pub struct PDH_FMT_COUNTERVALUE { |
829 | pub CStatus: u32, | |
830 | pub Anonymous: PDH_FMT_COUNTERVALUE_0, | |
831 | } | |
5e7ed085 | 832 | impl ::core::marker::Copy for PDH_FMT_COUNTERVALUE {} |
5e7ed085 FG |
833 | impl ::core::clone::Clone for PDH_FMT_COUNTERVALUE { |
834 | fn clone(&self) -> Self { | |
835 | *self | |
836 | } | |
837 | } | |
838 | #[repr(C)] | |
04454e1e | 839 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
840 | pub union PDH_FMT_COUNTERVALUE_0 { |
841 | pub longValue: i32, | |
842 | pub doubleValue: f64, | |
843 | pub largeValue: i64, | |
04454e1e FG |
844 | pub AnsiStringValue: ::windows_sys::core::PCSTR, |
845 | pub WideStringValue: ::windows_sys::core::PCWSTR, | |
5e7ed085 | 846 | } |
5e7ed085 | 847 | impl ::core::marker::Copy for PDH_FMT_COUNTERVALUE_0 {} |
5e7ed085 FG |
848 | impl ::core::clone::Clone for PDH_FMT_COUNTERVALUE_0 { |
849 | fn clone(&self) -> Self { | |
850 | *self | |
851 | } | |
852 | } | |
853 | #[repr(C)] | |
04454e1e | 854 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 855 | pub struct PDH_FMT_COUNTERVALUE_ITEM_A { |
04454e1e | 856 | pub szName: ::windows_sys::core::PSTR, |
5e7ed085 FG |
857 | pub FmtValue: PDH_FMT_COUNTERVALUE, |
858 | } | |
5e7ed085 | 859 | impl ::core::marker::Copy for PDH_FMT_COUNTERVALUE_ITEM_A {} |
5e7ed085 FG |
860 | impl ::core::clone::Clone for PDH_FMT_COUNTERVALUE_ITEM_A { |
861 | fn clone(&self) -> Self { | |
862 | *self | |
863 | } | |
864 | } | |
865 | #[repr(C)] | |
04454e1e | 866 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 867 | pub struct PDH_FMT_COUNTERVALUE_ITEM_W { |
04454e1e | 868 | pub szName: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
869 | pub FmtValue: PDH_FMT_COUNTERVALUE, |
870 | } | |
5e7ed085 | 871 | impl ::core::marker::Copy for PDH_FMT_COUNTERVALUE_ITEM_W {} |
5e7ed085 FG |
872 | impl ::core::clone::Clone for PDH_FMT_COUNTERVALUE_ITEM_W { |
873 | fn clone(&self) -> Self { | |
874 | *self | |
875 | } | |
876 | } | |
04454e1e | 877 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 878 | pub const PDH_FUNCTION_NOT_FOUND: i32 = -1073738818i32; |
04454e1e | 879 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 880 | pub const PDH_INCORRECT_APPEND_TIME: i32 = -1073738757i32; |
04454e1e | 881 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 882 | pub const PDH_INSUFFICIENT_BUFFER: i32 = -1073738814i32; |
04454e1e | 883 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 884 | pub const PDH_INVALID_ARGUMENT: i32 = -1073738819i32; |
04454e1e | 885 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 886 | pub const PDH_INVALID_BUFFER: i32 = -1073738815i32; |
04454e1e | 887 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 888 | pub const PDH_INVALID_DATA: i32 = -1073738810i32; |
04454e1e | 889 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 890 | pub const PDH_INVALID_DATASOURCE: i32 = -1073738787i32; |
04454e1e | 891 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 892 | pub const PDH_INVALID_HANDLE: i32 = -1073738820i32; |
04454e1e | 893 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 894 | pub const PDH_INVALID_INSTANCE: i32 = -1073738811i32; |
04454e1e | 895 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 896 | pub const PDH_INVALID_PATH: i32 = -1073738812i32; |
04454e1e | 897 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 898 | pub const PDH_INVALID_SQLDB: i32 = -1073738786i32; |
04454e1e | 899 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 900 | pub const PDH_INVALID_SQL_LOG_FORMAT: i32 = -1073738763i32; |
04454e1e | 901 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 902 | pub type PDH_LOG = u32; |
04454e1e | 903 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 904 | pub const PDH_LOG_READ_ACCESS: PDH_LOG = 65536u32; |
04454e1e | 905 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 906 | pub const PDH_LOG_WRITE_ACCESS: PDH_LOG = 131072u32; |
04454e1e | 907 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 908 | pub const PDH_LOG_UPDATE_ACCESS: PDH_LOG = 262144u32; |
04454e1e | 909 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 910 | pub const PDH_LOGSVC_NOT_OPENED: i32 = -1073738791i32; |
04454e1e | 911 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 912 | pub const PDH_LOGSVC_QUERY_NOT_FOUND: i32 = -1073738792i32; |
04454e1e | 913 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 914 | pub const PDH_LOG_FILE_CREATE_ERROR: i32 = -1073738807i32; |
04454e1e | 915 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 916 | pub const PDH_LOG_FILE_OPEN_ERROR: i32 = -1073738806i32; |
04454e1e | 917 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 918 | pub const PDH_LOG_FILE_TOO_SMALL: i32 = -1073738788i32; |
04454e1e | 919 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
920 | pub const PDH_LOG_SAMPLE_TOO_SMALL: i32 = -1073738760i32; |
921 | #[repr(C)] | |
04454e1e | 922 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
923 | #[cfg(feature = "Win32_Foundation")] |
924 | pub struct PDH_LOG_SERVICE_QUERY_INFO_A { | |
925 | pub dwSize: u32, | |
926 | pub dwFlags: u32, | |
927 | pub dwLogQuota: u32, | |
04454e1e FG |
928 | pub szLogFileCaption: ::windows_sys::core::PSTR, |
929 | pub szDefaultDir: ::windows_sys::core::PSTR, | |
930 | pub szBaseFileName: ::windows_sys::core::PSTR, | |
5e7ed085 FG |
931 | pub dwFileType: u32, |
932 | pub dwReserved: u32, | |
933 | pub Anonymous: PDH_LOG_SERVICE_QUERY_INFO_A_0, | |
934 | } | |
935 | #[cfg(feature = "Win32_Foundation")] | |
936 | impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_A {} | |
937 | #[cfg(feature = "Win32_Foundation")] | |
938 | impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_A { | |
939 | fn clone(&self) -> Self { | |
940 | *self | |
941 | } | |
942 | } | |
943 | #[repr(C)] | |
04454e1e | 944 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
945 | #[cfg(feature = "Win32_Foundation")] |
946 | pub union PDH_LOG_SERVICE_QUERY_INFO_A_0 { | |
947 | pub Anonymous1: PDH_LOG_SERVICE_QUERY_INFO_A_0_0, | |
948 | pub Anonymous2: PDH_LOG_SERVICE_QUERY_INFO_A_0_1, | |
949 | } | |
950 | #[cfg(feature = "Win32_Foundation")] | |
951 | impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_A_0 {} | |
952 | #[cfg(feature = "Win32_Foundation")] | |
953 | impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_A_0 { | |
954 | fn clone(&self) -> Self { | |
955 | *self | |
956 | } | |
957 | } | |
958 | #[repr(C)] | |
04454e1e | 959 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
960 | #[cfg(feature = "Win32_Foundation")] |
961 | pub struct PDH_LOG_SERVICE_QUERY_INFO_A_0_0 { | |
962 | pub PdlAutoNameInterval: u32, | |
963 | pub PdlAutoNameUnits: u32, | |
04454e1e FG |
964 | pub PdlCommandFilename: ::windows_sys::core::PSTR, |
965 | pub PdlCounterList: ::windows_sys::core::PSTR, | |
5e7ed085 FG |
966 | pub PdlAutoNameFormat: u32, |
967 | pub PdlSampleInterval: u32, | |
968 | pub PdlLogStartTime: super::super::Foundation::FILETIME, | |
969 | pub PdlLogEndTime: super::super::Foundation::FILETIME, | |
970 | } | |
971 | #[cfg(feature = "Win32_Foundation")] | |
972 | impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_A_0_0 {} | |
973 | #[cfg(feature = "Win32_Foundation")] | |
974 | impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_A_0_0 { | |
975 | fn clone(&self) -> Self { | |
976 | *self | |
977 | } | |
978 | } | |
979 | #[repr(C)] | |
04454e1e | 980 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
981 | #[cfg(feature = "Win32_Foundation")] |
982 | pub struct PDH_LOG_SERVICE_QUERY_INFO_A_0_1 { | |
983 | pub TlNumberOfBuffers: u32, | |
984 | pub TlMinimumBuffers: u32, | |
985 | pub TlMaximumBuffers: u32, | |
986 | pub TlFreeBuffers: u32, | |
987 | pub TlBufferSize: u32, | |
988 | pub TlEventsLost: u32, | |
989 | pub TlLoggerThreadId: u32, | |
990 | pub TlBuffersWritten: u32, | |
991 | pub TlLogHandle: u32, | |
04454e1e | 992 | pub TlLogFileName: ::windows_sys::core::PSTR, |
5e7ed085 FG |
993 | } |
994 | #[cfg(feature = "Win32_Foundation")] | |
995 | impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_A_0_1 {} | |
996 | #[cfg(feature = "Win32_Foundation")] | |
997 | impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_A_0_1 { | |
998 | fn clone(&self) -> Self { | |
999 | *self | |
1000 | } | |
1001 | } | |
1002 | #[repr(C)] | |
04454e1e | 1003 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1004 | #[cfg(feature = "Win32_Foundation")] |
1005 | pub struct PDH_LOG_SERVICE_QUERY_INFO_W { | |
1006 | pub dwSize: u32, | |
1007 | pub dwFlags: u32, | |
1008 | pub dwLogQuota: u32, | |
04454e1e FG |
1009 | pub szLogFileCaption: ::windows_sys::core::PWSTR, |
1010 | pub szDefaultDir: ::windows_sys::core::PWSTR, | |
1011 | pub szBaseFileName: ::windows_sys::core::PWSTR, | |
5e7ed085 FG |
1012 | pub dwFileType: u32, |
1013 | pub dwReserved: u32, | |
1014 | pub Anonymous: PDH_LOG_SERVICE_QUERY_INFO_W_0, | |
1015 | } | |
1016 | #[cfg(feature = "Win32_Foundation")] | |
1017 | impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_W {} | |
1018 | #[cfg(feature = "Win32_Foundation")] | |
1019 | impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_W { | |
1020 | fn clone(&self) -> Self { | |
1021 | *self | |
1022 | } | |
1023 | } | |
1024 | #[repr(C)] | |
04454e1e | 1025 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1026 | #[cfg(feature = "Win32_Foundation")] |
1027 | pub union PDH_LOG_SERVICE_QUERY_INFO_W_0 { | |
1028 | pub Anonymous1: PDH_LOG_SERVICE_QUERY_INFO_W_0_0, | |
1029 | pub Anonymous2: PDH_LOG_SERVICE_QUERY_INFO_W_0_1, | |
1030 | } | |
1031 | #[cfg(feature = "Win32_Foundation")] | |
1032 | impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_W_0 {} | |
1033 | #[cfg(feature = "Win32_Foundation")] | |
1034 | impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_W_0 { | |
1035 | fn clone(&self) -> Self { | |
1036 | *self | |
1037 | } | |
1038 | } | |
1039 | #[repr(C)] | |
04454e1e | 1040 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1041 | #[cfg(feature = "Win32_Foundation")] |
1042 | pub struct PDH_LOG_SERVICE_QUERY_INFO_W_0_0 { | |
1043 | pub PdlAutoNameInterval: u32, | |
1044 | pub PdlAutoNameUnits: u32, | |
04454e1e FG |
1045 | pub PdlCommandFilename: ::windows_sys::core::PWSTR, |
1046 | pub PdlCounterList: ::windows_sys::core::PWSTR, | |
5e7ed085 FG |
1047 | pub PdlAutoNameFormat: u32, |
1048 | pub PdlSampleInterval: u32, | |
1049 | pub PdlLogStartTime: super::super::Foundation::FILETIME, | |
1050 | pub PdlLogEndTime: super::super::Foundation::FILETIME, | |
1051 | } | |
1052 | #[cfg(feature = "Win32_Foundation")] | |
1053 | impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_W_0_0 {} | |
1054 | #[cfg(feature = "Win32_Foundation")] | |
1055 | impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_W_0_0 { | |
1056 | fn clone(&self) -> Self { | |
1057 | *self | |
1058 | } | |
1059 | } | |
1060 | #[repr(C)] | |
04454e1e | 1061 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1062 | #[cfg(feature = "Win32_Foundation")] |
1063 | pub struct PDH_LOG_SERVICE_QUERY_INFO_W_0_1 { | |
1064 | pub TlNumberOfBuffers: u32, | |
1065 | pub TlMinimumBuffers: u32, | |
1066 | pub TlMaximumBuffers: u32, | |
1067 | pub TlFreeBuffers: u32, | |
1068 | pub TlBufferSize: u32, | |
1069 | pub TlEventsLost: u32, | |
1070 | pub TlLoggerThreadId: u32, | |
1071 | pub TlBuffersWritten: u32, | |
1072 | pub TlLogHandle: u32, | |
04454e1e | 1073 | pub TlLogFileName: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
1074 | } |
1075 | #[cfg(feature = "Win32_Foundation")] | |
1076 | impl ::core::marker::Copy for PDH_LOG_SERVICE_QUERY_INFO_W_0_1 {} | |
1077 | #[cfg(feature = "Win32_Foundation")] | |
1078 | impl ::core::clone::Clone for PDH_LOG_SERVICE_QUERY_INFO_W_0_1 { | |
1079 | fn clone(&self) -> Self { | |
1080 | *self | |
1081 | } | |
1082 | } | |
04454e1e | 1083 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1084 | pub type PDH_LOG_TYPE = u32; |
04454e1e | 1085 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1086 | pub const PDH_LOG_TYPE_UNDEFINED: PDH_LOG_TYPE = 0u32; |
04454e1e | 1087 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1088 | pub const PDH_LOG_TYPE_CSV: PDH_LOG_TYPE = 1u32; |
04454e1e | 1089 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1090 | pub const PDH_LOG_TYPE_SQL: PDH_LOG_TYPE = 7u32; |
04454e1e | 1091 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1092 | pub const PDH_LOG_TYPE_TSV: PDH_LOG_TYPE = 2u32; |
04454e1e | 1093 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1094 | pub const PDH_LOG_TYPE_BINARY: PDH_LOG_TYPE = 8u32; |
04454e1e | 1095 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1096 | pub const PDH_LOG_TYPE_PERFMON: PDH_LOG_TYPE = 6u32; |
04454e1e | 1097 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1098 | pub const PDH_LOG_TYPE_NOT_FOUND: i32 = -1073738805i32; |
04454e1e | 1099 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1100 | pub const PDH_LOG_TYPE_RETIRED_BIN: u32 = 3u32; |
04454e1e | 1101 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1102 | pub const PDH_LOG_TYPE_TRACE_GENERIC: u32 = 5u32; |
04454e1e | 1103 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1104 | pub const PDH_LOG_TYPE_TRACE_KERNEL: u32 = 4u32; |
04454e1e | 1105 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1106 | pub const PDH_MAX_COUNTER_NAME: u32 = 1024u32; |
04454e1e | 1107 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1108 | pub const PDH_MAX_COUNTER_PATH: u32 = 2048u32; |
04454e1e | 1109 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1110 | pub const PDH_MAX_DATASOURCE_PATH: u32 = 1024u32; |
04454e1e | 1111 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1112 | pub const PDH_MAX_INSTANCE_NAME: u32 = 1024u32; |
04454e1e | 1113 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1114 | pub const PDH_MAX_SCALE: i32 = 7i32; |
04454e1e | 1115 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1116 | pub const PDH_MEMORY_ALLOCATION_FAILURE: i32 = -1073738821i32; |
04454e1e | 1117 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1118 | pub const PDH_MIN_SCALE: i32 = -7i32; |
04454e1e | 1119 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1120 | pub const PDH_MORE_DATA: i32 = -2147481646i32; |
04454e1e | 1121 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1122 | pub const PDH_NOEXPANDCOUNTERS: u32 = 1u32; |
04454e1e | 1123 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1124 | pub const PDH_NOEXPANDINSTANCES: u32 = 2u32; |
04454e1e | 1125 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1126 | pub const PDH_NOT_IMPLEMENTED: i32 = -1073738797i32; |
04454e1e | 1127 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1128 | pub const PDH_NO_COUNTERS: i32 = -1073738785i32; |
04454e1e | 1129 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1130 | pub const PDH_NO_DATA: i32 = -2147481643i32; |
04454e1e | 1131 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1132 | pub const PDH_NO_DIALOG_DATA: i32 = -1073738809i32; |
04454e1e | 1133 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1134 | pub const PDH_NO_MORE_DATA: i32 = -1073738804i32; |
04454e1e | 1135 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1136 | pub const PDH_OS_EARLIER_VERSION: i32 = -1073738758i32; |
04454e1e | 1137 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1138 | pub const PDH_OS_LATER_VERSION: i32 = -1073738759i32; |
04454e1e | 1139 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1140 | pub type PDH_PATH_FLAGS = u32; |
04454e1e | 1141 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1142 | pub const PDH_PATH_WBEM_RESULT: PDH_PATH_FLAGS = 1u32; |
04454e1e | 1143 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1144 | pub const PDH_PATH_WBEM_INPUT: PDH_PATH_FLAGS = 2u32; |
04454e1e | 1145 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1146 | pub const PDH_PATH_WBEM_NONE: PDH_PATH_FLAGS = 0u32; |
04454e1e | 1147 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1148 | pub const PDH_PLA_COLLECTION_ALREADY_RUNNING: i32 = -1073738775i32; |
04454e1e | 1149 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1150 | pub const PDH_PLA_COLLECTION_NOT_FOUND: i32 = -1073738773i32; |
04454e1e | 1151 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1152 | pub const PDH_PLA_ERROR_ALREADY_EXISTS: i32 = -1073738770i32; |
04454e1e | 1153 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1154 | pub const PDH_PLA_ERROR_FILEPATH: i32 = -1073738768i32; |
04454e1e | 1155 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1156 | pub const PDH_PLA_ERROR_NAME_TOO_LONG: i32 = -1073738764i32; |
04454e1e | 1157 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1158 | pub const PDH_PLA_ERROR_NOSTART: i32 = -1073738771i32; |
04454e1e | 1159 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1160 | pub const PDH_PLA_ERROR_SCHEDULE_ELAPSED: i32 = -1073738772i32; |
04454e1e | 1161 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1162 | pub const PDH_PLA_ERROR_SCHEDULE_OVERLAP: i32 = -1073738774i32; |
04454e1e | 1163 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1164 | pub const PDH_PLA_ERROR_TYPE_MISMATCH: i32 = -1073738769i32; |
04454e1e | 1165 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1166 | pub const PDH_PLA_SERVICE_ERROR: i32 = -1073738767i32; |
04454e1e | 1167 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1168 | pub const PDH_PLA_VALIDATION_ERROR: i32 = -1073738766i32; |
04454e1e | 1169 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1170 | pub const PDH_PLA_VALIDATION_WARNING: i32 = -2147480589i32; |
04454e1e | 1171 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1172 | pub const PDH_QUERY_PERF_DATA_TIMEOUT: i32 = -1073738754i32; |
1173 | #[repr(C)] | |
04454e1e | 1174 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1175 | #[cfg(feature = "Win32_Foundation")] |
1176 | pub struct PDH_RAW_COUNTER { | |
1177 | pub CStatus: u32, | |
1178 | pub TimeStamp: super::super::Foundation::FILETIME, | |
1179 | pub FirstValue: i64, | |
1180 | pub SecondValue: i64, | |
1181 | pub MultiCount: u32, | |
1182 | } | |
1183 | #[cfg(feature = "Win32_Foundation")] | |
1184 | impl ::core::marker::Copy for PDH_RAW_COUNTER {} | |
1185 | #[cfg(feature = "Win32_Foundation")] | |
1186 | impl ::core::clone::Clone for PDH_RAW_COUNTER { | |
1187 | fn clone(&self) -> Self { | |
1188 | *self | |
1189 | } | |
1190 | } | |
1191 | #[repr(C)] | |
04454e1e | 1192 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1193 | #[cfg(feature = "Win32_Foundation")] |
1194 | pub struct PDH_RAW_COUNTER_ITEM_A { | |
04454e1e | 1195 | pub szName: ::windows_sys::core::PSTR, |
5e7ed085 FG |
1196 | pub RawValue: PDH_RAW_COUNTER, |
1197 | } | |
1198 | #[cfg(feature = "Win32_Foundation")] | |
1199 | impl ::core::marker::Copy for PDH_RAW_COUNTER_ITEM_A {} | |
1200 | #[cfg(feature = "Win32_Foundation")] | |
1201 | impl ::core::clone::Clone for PDH_RAW_COUNTER_ITEM_A { | |
1202 | fn clone(&self) -> Self { | |
1203 | *self | |
1204 | } | |
1205 | } | |
1206 | #[repr(C)] | |
04454e1e | 1207 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1208 | #[cfg(feature = "Win32_Foundation")] |
1209 | pub struct PDH_RAW_COUNTER_ITEM_W { | |
04454e1e | 1210 | pub szName: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
1211 | pub RawValue: PDH_RAW_COUNTER, |
1212 | } | |
1213 | #[cfg(feature = "Win32_Foundation")] | |
1214 | impl ::core::marker::Copy for PDH_RAW_COUNTER_ITEM_W {} | |
1215 | #[cfg(feature = "Win32_Foundation")] | |
1216 | impl ::core::clone::Clone for PDH_RAW_COUNTER_ITEM_W { | |
1217 | fn clone(&self) -> Self { | |
1218 | *self | |
1219 | } | |
1220 | } | |
1221 | #[repr(C)] | |
04454e1e | 1222 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1223 | pub struct PDH_RAW_LOG_RECORD { |
1224 | pub dwStructureSize: u32, | |
1225 | pub dwRecordType: PDH_LOG_TYPE, | |
1226 | pub dwItems: u32, | |
1227 | pub RawBytes: [u8; 1], | |
1228 | } | |
1229 | impl ::core::marker::Copy for PDH_RAW_LOG_RECORD {} | |
1230 | impl ::core::clone::Clone for PDH_RAW_LOG_RECORD { | |
1231 | fn clone(&self) -> Self { | |
1232 | *self | |
1233 | } | |
1234 | } | |
04454e1e | 1235 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1236 | pub const PDH_REFRESHCOUNTERS: u32 = 4u32; |
04454e1e | 1237 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1238 | pub const PDH_RETRY: i32 = -2147481644i32; |
04454e1e | 1239 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1240 | pub type PDH_SELECT_DATA_SOURCE_FLAGS = u32; |
04454e1e | 1241 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1242 | pub const PDH_FLAGS_FILE_BROWSER_ONLY: PDH_SELECT_DATA_SOURCE_FLAGS = 1u32; |
04454e1e | 1243 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1244 | pub const PDH_FLAGS_NONE: PDH_SELECT_DATA_SOURCE_FLAGS = 0u32; |
04454e1e | 1245 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1246 | pub const PDH_SQL_ALLOCCON_FAILED: i32 = -1073738783i32; |
04454e1e | 1247 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1248 | pub const PDH_SQL_ALLOC_FAILED: i32 = -1073738784i32; |
04454e1e | 1249 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1250 | pub const PDH_SQL_ALTER_DETAIL_FAILED: i32 = -1073738755i32; |
04454e1e | 1251 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1252 | pub const PDH_SQL_BIND_FAILED: i32 = -1073738777i32; |
04454e1e | 1253 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1254 | pub const PDH_SQL_CONNECT_FAILED: i32 = -1073738778i32; |
04454e1e | 1255 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1256 | pub const PDH_SQL_EXEC_DIRECT_FAILED: i32 = -1073738782i32; |
04454e1e | 1257 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1258 | pub const PDH_SQL_FETCH_FAILED: i32 = -1073738781i32; |
04454e1e | 1259 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1260 | pub const PDH_SQL_MORE_RESULTS_FAILED: i32 = -1073738779i32; |
04454e1e | 1261 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1262 | pub const PDH_SQL_ROWCOUNT_FAILED: i32 = -1073738780i32; |
1263 | #[repr(C)] | |
04454e1e | 1264 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1265 | pub struct PDH_STATISTICS { |
1266 | pub dwFormat: u32, | |
1267 | pub count: u32, | |
1268 | pub min: PDH_FMT_COUNTERVALUE, | |
1269 | pub max: PDH_FMT_COUNTERVALUE, | |
1270 | pub mean: PDH_FMT_COUNTERVALUE, | |
1271 | } | |
5e7ed085 | 1272 | impl ::core::marker::Copy for PDH_STATISTICS {} |
5e7ed085 FG |
1273 | impl ::core::clone::Clone for PDH_STATISTICS { |
1274 | fn clone(&self) -> Self { | |
1275 | *self | |
1276 | } | |
1277 | } | |
04454e1e | 1278 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1279 | pub const PDH_STRING_NOT_FOUND: i32 = -1073738796i32; |
1280 | #[repr(C)] | |
04454e1e | 1281 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1282 | pub struct PDH_TIME_INFO { |
1283 | pub StartTime: i64, | |
1284 | pub EndTime: i64, | |
1285 | pub SampleCount: u32, | |
1286 | } | |
1287 | impl ::core::marker::Copy for PDH_TIME_INFO {} | |
1288 | impl ::core::clone::Clone for PDH_TIME_INFO { | |
1289 | fn clone(&self) -> Self { | |
1290 | *self | |
1291 | } | |
1292 | } | |
04454e1e | 1293 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1294 | pub const PDH_UNABLE_MAP_NAME_FILES: i32 = -2147480619i32; |
04454e1e | 1295 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1296 | pub const PDH_UNABLE_READ_LOG_HEADER: i32 = -1073738800i32; |
04454e1e | 1297 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1298 | pub const PDH_UNKNOWN_LOGSVC_COMMAND: i32 = -1073738793i32; |
04454e1e | 1299 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1300 | pub const PDH_UNKNOWN_LOG_FORMAT: i32 = -1073738794i32; |
04454e1e | 1301 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1302 | pub const PDH_UNMATCHED_APPEND_COUNTER: i32 = -1073738756i32; |
04454e1e | 1303 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1304 | pub const PDH_WBEM_ERROR: i32 = -1073738790i32; |
04454e1e | 1305 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1306 | pub type PERFLIBREQUEST = ::core::option::Option<unsafe extern "system" fn(requestcode: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32) -> u32>; |
04454e1e | 1307 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1308 | pub const PERF_ADD_COUNTER: u32 = 1u32; |
04454e1e | 1309 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
923072b8 | 1310 | pub const PERF_AGGREGATE_INSTANCE: &str = "_Total"; |
04454e1e | 1311 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1312 | pub const PERF_AGGREGATE_MAX: u32 = 4u32; |
04454e1e | 1313 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1314 | pub const PERF_ATTRIB_BY_REFERENCE: u64 = 1u64; |
04454e1e | 1315 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1316 | pub const PERF_ATTRIB_DISPLAY_AS_HEX: u64 = 16u64; |
04454e1e | 1317 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1318 | pub const PERF_ATTRIB_DISPLAY_AS_REAL: u64 = 8u64; |
04454e1e | 1319 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1320 | pub const PERF_ATTRIB_NO_DISPLAYABLE: u64 = 2u64; |
04454e1e | 1321 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1322 | pub const PERF_ATTRIB_NO_GROUP_SEPARATOR: u64 = 4u64; |
04454e1e | 1323 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1324 | pub const PERF_COLLECT_END: u32 = 6u32; |
04454e1e | 1325 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1326 | pub const PERF_COLLECT_START: u32 = 5u32; |
04454e1e | 1327 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1328 | pub const PERF_COUNTERSET_FLAG_AGGREGATE: u32 = 4u32; |
04454e1e | 1329 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1330 | pub const PERF_COUNTERSET_FLAG_HISTORY: u32 = 8u32; |
04454e1e | 1331 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1332 | pub const PERF_COUNTERSET_FLAG_INSTANCE: u32 = 16u32; |
04454e1e | 1333 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1334 | pub const PERF_COUNTERSET_FLAG_MULTIPLE: u32 = 2u32; |
1335 | #[repr(C)] | |
04454e1e | 1336 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1337 | pub struct PERF_COUNTERSET_INFO { |
1338 | pub CounterSetGuid: ::windows_sys::core::GUID, | |
1339 | pub ProviderGuid: ::windows_sys::core::GUID, | |
1340 | pub NumCounters: u32, | |
1341 | pub InstanceType: u32, | |
1342 | } | |
1343 | impl ::core::marker::Copy for PERF_COUNTERSET_INFO {} | |
1344 | impl ::core::clone::Clone for PERF_COUNTERSET_INFO { | |
1345 | fn clone(&self) -> Self { | |
1346 | *self | |
1347 | } | |
1348 | } | |
1349 | #[repr(C)] | |
04454e1e | 1350 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1351 | pub struct PERF_COUNTERSET_INSTANCE { |
1352 | pub CounterSetGuid: ::windows_sys::core::GUID, | |
1353 | pub dwSize: u32, | |
1354 | pub InstanceId: u32, | |
1355 | pub InstanceNameOffset: u32, | |
1356 | pub InstanceNameSize: u32, | |
1357 | } | |
1358 | impl ::core::marker::Copy for PERF_COUNTERSET_INSTANCE {} | |
1359 | impl ::core::clone::Clone for PERF_COUNTERSET_INSTANCE { | |
1360 | fn clone(&self) -> Self { | |
1361 | *self | |
1362 | } | |
1363 | } | |
04454e1e | 1364 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1365 | pub const PERF_COUNTERSET_MULTI_INSTANCES: u32 = 2u32; |
1366 | #[repr(C)] | |
04454e1e | 1367 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1368 | pub struct PERF_COUNTERSET_REG_INFO { |
1369 | pub CounterSetGuid: ::windows_sys::core::GUID, | |
1370 | pub CounterSetType: u32, | |
1371 | pub DetailLevel: u32, | |
1372 | pub NumCounters: u32, | |
1373 | pub InstanceType: u32, | |
1374 | } | |
1375 | impl ::core::marker::Copy for PERF_COUNTERSET_REG_INFO {} | |
1376 | impl ::core::clone::Clone for PERF_COUNTERSET_REG_INFO { | |
1377 | fn clone(&self) -> Self { | |
1378 | *self | |
1379 | } | |
1380 | } | |
04454e1e | 1381 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1382 | pub const PERF_COUNTERSET_SINGLE_AGGREGATE: u32 = 4u32; |
04454e1e | 1383 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1384 | pub const PERF_COUNTERSET_SINGLE_INSTANCE: u32 = 0u32; |
04454e1e | 1385 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1386 | pub type PERF_COUNTER_AGGREGATE_FUNC = u32; |
04454e1e | 1387 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1388 | pub const PERF_AGGREGATE_UNDEFINED: PERF_COUNTER_AGGREGATE_FUNC = 0u32; |
04454e1e | 1389 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1390 | pub const PERF_AGGREGATE_TOTAL: PERF_COUNTER_AGGREGATE_FUNC = 1u32; |
04454e1e | 1391 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1392 | pub const PERF_AGGREGATE_AVG: PERF_COUNTER_AGGREGATE_FUNC = 2u32; |
04454e1e | 1393 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1394 | pub const PERF_AGGREGATE_MIN: PERF_COUNTER_AGGREGATE_FUNC = 3u32; |
04454e1e | 1395 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1396 | pub const PERF_COUNTER_BASE: u32 = 196608u32; |
1397 | #[repr(C)] | |
04454e1e | 1398 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1399 | pub struct PERF_COUNTER_BLOCK { |
1400 | pub ByteLength: u32, | |
1401 | } | |
1402 | impl ::core::marker::Copy for PERF_COUNTER_BLOCK {} | |
1403 | impl ::core::clone::Clone for PERF_COUNTER_BLOCK { | |
1404 | fn clone(&self) -> Self { | |
1405 | *self | |
1406 | } | |
1407 | } | |
1408 | #[repr(C)] | |
04454e1e | 1409 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1410 | pub struct PERF_COUNTER_DATA { |
1411 | pub dwDataSize: u32, | |
1412 | pub dwSize: u32, | |
1413 | } | |
1414 | impl ::core::marker::Copy for PERF_COUNTER_DATA {} | |
1415 | impl ::core::clone::Clone for PERF_COUNTER_DATA { | |
1416 | fn clone(&self) -> Self { | |
1417 | *self | |
1418 | } | |
1419 | } | |
1420 | #[repr(C)] | |
04454e1e | 1421 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1422 | #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
5e7ed085 FG |
1423 | pub struct PERF_COUNTER_DEFINITION { |
1424 | pub ByteLength: u32, | |
1425 | pub CounterNameTitleIndex: u32, | |
1426 | pub CounterNameTitle: u32, | |
1427 | pub CounterHelpTitleIndex: u32, | |
1428 | pub CounterHelpTitle: u32, | |
1429 | pub DefaultScale: i32, | |
1430 | pub DetailLevel: u32, | |
1431 | pub CounterType: u32, | |
1432 | pub CounterSize: u32, | |
1433 | pub CounterOffset: u32, | |
1434 | } | |
1435 | #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] | |
5e7ed085 FG |
1436 | impl ::core::marker::Copy for PERF_COUNTER_DEFINITION {} |
1437 | #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] | |
5e7ed085 FG |
1438 | impl ::core::clone::Clone for PERF_COUNTER_DEFINITION { |
1439 | fn clone(&self) -> Self { | |
1440 | *self | |
1441 | } | |
1442 | } | |
1443 | #[repr(C)] | |
04454e1e | 1444 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1445 | #[cfg(target_arch = "x86")] |
5e7ed085 FG |
1446 | pub struct PERF_COUNTER_DEFINITION { |
1447 | pub ByteLength: u32, | |
1448 | pub CounterNameTitleIndex: u32, | |
04454e1e | 1449 | pub CounterNameTitle: ::windows_sys::core::PWSTR, |
5e7ed085 | 1450 | pub CounterHelpTitleIndex: u32, |
04454e1e | 1451 | pub CounterHelpTitle: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
1452 | pub DefaultScale: i32, |
1453 | pub DetailLevel: u32, | |
1454 | pub CounterType: u32, | |
1455 | pub CounterSize: u32, | |
1456 | pub CounterOffset: u32, | |
1457 | } | |
1458 | #[cfg(target_arch = "x86")] | |
5e7ed085 FG |
1459 | impl ::core::marker::Copy for PERF_COUNTER_DEFINITION {} |
1460 | #[cfg(target_arch = "x86")] | |
5e7ed085 FG |
1461 | impl ::core::clone::Clone for PERF_COUNTER_DEFINITION { |
1462 | fn clone(&self) -> Self { | |
1463 | *self | |
1464 | } | |
1465 | } | |
04454e1e | 1466 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1467 | pub const PERF_COUNTER_ELAPSED: u32 = 262144u32; |
04454e1e | 1468 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1469 | pub const PERF_COUNTER_FRACTION: u32 = 131072u32; |
1470 | #[repr(C)] | |
04454e1e | 1471 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1472 | pub struct PERF_COUNTER_HEADER { |
1473 | pub dwStatus: u32, | |
1474 | pub dwType: PerfCounterDataType, | |
1475 | pub dwSize: u32, | |
1476 | pub Reserved: u32, | |
1477 | } | |
1478 | impl ::core::marker::Copy for PERF_COUNTER_HEADER {} | |
1479 | impl ::core::clone::Clone for PERF_COUNTER_HEADER { | |
1480 | fn clone(&self) -> Self { | |
1481 | *self | |
1482 | } | |
1483 | } | |
04454e1e | 1484 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1485 | pub const PERF_COUNTER_HISTOGRAM: u32 = 393216u32; |
04454e1e | 1486 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1487 | pub const PERF_COUNTER_HISTOGRAM_TYPE: u32 = 2147483648u32; |
1488 | #[repr(C)] | |
04454e1e | 1489 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1490 | pub struct PERF_COUNTER_IDENTIFIER { |
1491 | pub CounterSetGuid: ::windows_sys::core::GUID, | |
1492 | pub Status: u32, | |
1493 | pub Size: u32, | |
1494 | pub CounterId: u32, | |
1495 | pub InstanceId: u32, | |
1496 | pub Index: u32, | |
1497 | pub Reserved: u32, | |
1498 | } | |
1499 | impl ::core::marker::Copy for PERF_COUNTER_IDENTIFIER {} | |
1500 | impl ::core::clone::Clone for PERF_COUNTER_IDENTIFIER { | |
1501 | fn clone(&self) -> Self { | |
1502 | *self | |
1503 | } | |
1504 | } | |
1505 | #[repr(C)] | |
04454e1e | 1506 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1507 | pub struct PERF_COUNTER_IDENTITY { |
1508 | pub CounterSetGuid: ::windows_sys::core::GUID, | |
1509 | pub BufferSize: u32, | |
1510 | pub CounterId: u32, | |
1511 | pub InstanceId: u32, | |
1512 | pub MachineOffset: u32, | |
1513 | pub NameOffset: u32, | |
1514 | pub Reserved: u32, | |
1515 | } | |
1516 | impl ::core::marker::Copy for PERF_COUNTER_IDENTITY {} | |
1517 | impl ::core::clone::Clone for PERF_COUNTER_IDENTITY { | |
1518 | fn clone(&self) -> Self { | |
1519 | *self | |
1520 | } | |
1521 | } | |
1522 | #[repr(C)] | |
04454e1e | 1523 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1524 | pub struct PERF_COUNTER_INFO { |
1525 | pub CounterId: u32, | |
1526 | pub Type: u32, | |
1527 | pub Attrib: u64, | |
1528 | pub Size: u32, | |
1529 | pub DetailLevel: u32, | |
1530 | pub Scale: i32, | |
1531 | pub Offset: u32, | |
1532 | } | |
1533 | impl ::core::marker::Copy for PERF_COUNTER_INFO {} | |
1534 | impl ::core::clone::Clone for PERF_COUNTER_INFO { | |
1535 | fn clone(&self) -> Self { | |
1536 | *self | |
1537 | } | |
1538 | } | |
04454e1e | 1539 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1540 | pub const PERF_COUNTER_PRECISION: u32 = 458752u32; |
04454e1e | 1541 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1542 | pub const PERF_COUNTER_QUEUELEN: u32 = 327680u32; |
04454e1e | 1543 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1544 | pub const PERF_COUNTER_RATE: u32 = 65536u32; |
1545 | #[repr(C)] | |
04454e1e | 1546 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1547 | pub struct PERF_COUNTER_REG_INFO { |
1548 | pub CounterId: u32, | |
1549 | pub Type: u32, | |
1550 | pub Attrib: u64, | |
1551 | pub DetailLevel: u32, | |
1552 | pub DefaultScale: i32, | |
1553 | pub BaseCounterId: u32, | |
1554 | pub PerfTimeId: u32, | |
1555 | pub PerfFreqId: u32, | |
1556 | pub MultiId: u32, | |
1557 | pub AggregateFunc: PERF_COUNTER_AGGREGATE_FUNC, | |
1558 | pub Reserved: u32, | |
1559 | } | |
1560 | impl ::core::marker::Copy for PERF_COUNTER_REG_INFO {} | |
1561 | impl ::core::clone::Clone for PERF_COUNTER_REG_INFO { | |
1562 | fn clone(&self) -> Self { | |
1563 | *self | |
1564 | } | |
1565 | } | |
04454e1e | 1566 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1567 | pub const PERF_COUNTER_VALUE: u32 = 0u32; |
1568 | #[repr(C)] | |
04454e1e | 1569 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1570 | #[cfg(feature = "Win32_Foundation")] |
1571 | pub struct PERF_DATA_BLOCK { | |
1572 | pub Signature: [u16; 4], | |
1573 | pub LittleEndian: u32, | |
1574 | pub Version: u32, | |
1575 | pub Revision: u32, | |
1576 | pub TotalByteLength: u32, | |
1577 | pub HeaderLength: u32, | |
1578 | pub NumObjectTypes: u32, | |
1579 | pub DefaultObject: i32, | |
1580 | pub SystemTime: super::super::Foundation::SYSTEMTIME, | |
1581 | pub PerfTime: i64, | |
1582 | pub PerfFreq: i64, | |
1583 | pub PerfTime100nSec: i64, | |
1584 | pub SystemNameLength: u32, | |
1585 | pub SystemNameOffset: u32, | |
1586 | } | |
1587 | #[cfg(feature = "Win32_Foundation")] | |
1588 | impl ::core::marker::Copy for PERF_DATA_BLOCK {} | |
1589 | #[cfg(feature = "Win32_Foundation")] | |
1590 | impl ::core::clone::Clone for PERF_DATA_BLOCK { | |
1591 | fn clone(&self) -> Self { | |
1592 | *self | |
1593 | } | |
1594 | } | |
1595 | #[repr(C)] | |
04454e1e | 1596 | #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1597 | #[cfg(feature = "Win32_Foundation")] |
1598 | pub struct PERF_DATA_HEADER { | |
1599 | pub dwTotalSize: u32, | |
1600 | pub dwNumCounters: u32, | |
1601 | pub PerfTimeStamp: i64, | |
1602 | pub PerfTime100NSec: i64, | |
1603 | pub PerfFreq: i64, | |
1604 | pub SystemTime: super::super::Foundation::SYSTEMTIME, | |
1605 | } | |
1606 | #[cfg(feature = "Win32_Foundation")] | |
1607 | impl ::core::marker::Copy for PERF_DATA_HEADER {} | |
1608 | #[cfg(feature = "Win32_Foundation")] | |
1609 | impl ::core::clone::Clone for PERF_DATA_HEADER { | |
1610 | fn clone(&self) -> Self { | |
1611 | *self | |
1612 | } | |
1613 | } | |
04454e1e | 1614 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1615 | pub const PERF_DATA_REVISION: u32 = 1u32; |
04454e1e | 1616 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1617 | pub const PERF_DATA_VERSION: u32 = 1u32; |
04454e1e | 1618 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1619 | pub const PERF_DELTA_BASE: u32 = 8388608u32; |
04454e1e | 1620 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1621 | pub const PERF_DELTA_COUNTER: u32 = 4194304u32; |
04454e1e | 1622 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1623 | pub type PERF_DETAIL = u32; |
04454e1e | 1624 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1625 | pub const PERF_DETAIL_NOVICE: PERF_DETAIL = 100u32; |
04454e1e | 1626 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1627 | pub const PERF_DETAIL_ADVANCED: PERF_DETAIL = 200u32; |
04454e1e | 1628 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1629 | pub const PERF_DETAIL_EXPERT: PERF_DETAIL = 300u32; |
04454e1e | 1630 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1631 | pub const PERF_DETAIL_WIZARD: PERF_DETAIL = 400u32; |
04454e1e | 1632 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1633 | pub const PERF_DISPLAY_NOSHOW: u32 = 1073741824u32; |
04454e1e | 1634 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1635 | pub const PERF_DISPLAY_NO_SUFFIX: u32 = 0u32; |
04454e1e | 1636 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1637 | pub const PERF_DISPLAY_PERCENT: u32 = 536870912u32; |
04454e1e | 1638 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1639 | pub const PERF_DISPLAY_PER_SEC: u32 = 268435456u32; |
04454e1e | 1640 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1641 | pub const PERF_DISPLAY_SECONDS: u32 = 805306368u32; |
04454e1e | 1642 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1643 | pub const PERF_ENUM_INSTANCES: u32 = 3u32; |
04454e1e | 1644 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1645 | pub const PERF_FILTER: u32 = 9u32; |
1646 | #[repr(C)] | |
04454e1e | 1647 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1648 | pub struct PERF_INSTANCE_DEFINITION { |
1649 | pub ByteLength: u32, | |
1650 | pub ParentObjectTitleIndex: u32, | |
1651 | pub ParentObjectInstance: u32, | |
1652 | pub UniqueID: i32, | |
1653 | pub NameOffset: u32, | |
1654 | pub NameLength: u32, | |
1655 | } | |
1656 | impl ::core::marker::Copy for PERF_INSTANCE_DEFINITION {} | |
1657 | impl ::core::clone::Clone for PERF_INSTANCE_DEFINITION { | |
1658 | fn clone(&self) -> Self { | |
1659 | *self | |
1660 | } | |
1661 | } | |
1662 | #[repr(C)] | |
04454e1e | 1663 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1664 | pub struct PERF_INSTANCE_HEADER { |
1665 | pub Size: u32, | |
1666 | pub InstanceId: u32, | |
1667 | } | |
1668 | impl ::core::marker::Copy for PERF_INSTANCE_HEADER {} | |
1669 | impl ::core::clone::Clone for PERF_INSTANCE_HEADER { | |
1670 | fn clone(&self) -> Self { | |
1671 | *self | |
1672 | } | |
1673 | } | |
04454e1e | 1674 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1675 | pub const PERF_INVERSE_COUNTER: u32 = 16777216u32; |
04454e1e | 1676 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1677 | pub const PERF_MAX_INSTANCE_NAME: u32 = 1024u32; |
04454e1e | 1678 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1679 | 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>; |
04454e1e | 1680 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1681 | pub type PERF_MEM_FREE = ::core::option::Option<unsafe extern "system" fn(pbuffer: *mut ::core::ffi::c_void, pcontext: *mut ::core::ffi::c_void)>; |
04454e1e | 1682 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1683 | pub const PERF_METADATA_MULTIPLE_INSTANCES: i32 = -2i32; |
04454e1e | 1684 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1685 | pub const PERF_METADATA_NO_INSTANCES: i32 = -3i32; |
04454e1e | 1686 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1687 | pub const PERF_MULTI_COUNTER: u32 = 33554432u32; |
1688 | #[repr(C)] | |
04454e1e | 1689 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1690 | pub struct PERF_MULTI_COUNTERS { |
1691 | pub dwSize: u32, | |
1692 | pub dwCounters: u32, | |
1693 | } | |
1694 | impl ::core::marker::Copy for PERF_MULTI_COUNTERS {} | |
1695 | impl ::core::clone::Clone for PERF_MULTI_COUNTERS { | |
1696 | fn clone(&self) -> Self { | |
1697 | *self | |
1698 | } | |
1699 | } | |
1700 | #[repr(C)] | |
04454e1e | 1701 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1702 | pub struct PERF_MULTI_INSTANCES { |
1703 | pub dwTotalSize: u32, | |
1704 | pub dwInstances: u32, | |
1705 | } | |
1706 | impl ::core::marker::Copy for PERF_MULTI_INSTANCES {} | |
1707 | impl ::core::clone::Clone for PERF_MULTI_INSTANCES { | |
1708 | fn clone(&self) -> Self { | |
1709 | *self | |
1710 | } | |
1711 | } | |
04454e1e | 1712 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1713 | pub const PERF_NO_INSTANCES: i32 = -1i32; |
04454e1e | 1714 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1715 | pub const PERF_NO_UNIQUE_ID: i32 = -1i32; |
04454e1e | 1716 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1717 | pub const PERF_NUMBER_DECIMAL: u32 = 65536u32; |
04454e1e | 1718 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1719 | pub const PERF_NUMBER_DEC_1000: u32 = 131072u32; |
04454e1e | 1720 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1721 | pub const PERF_NUMBER_HEX: u32 = 0u32; |
04454e1e | 1722 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1723 | pub const PERF_OBJECT_TIMER: u32 = 2097152u32; |
1724 | #[repr(C)] | |
04454e1e | 1725 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1726 | #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] |
5e7ed085 FG |
1727 | pub struct PERF_OBJECT_TYPE { |
1728 | pub TotalByteLength: u32, | |
1729 | pub DefinitionLength: u32, | |
1730 | pub HeaderLength: u32, | |
1731 | pub ObjectNameTitleIndex: u32, | |
1732 | pub ObjectNameTitle: u32, | |
1733 | pub ObjectHelpTitleIndex: u32, | |
1734 | pub ObjectHelpTitle: u32, | |
1735 | pub DetailLevel: u32, | |
1736 | pub NumCounters: u32, | |
1737 | pub DefaultCounter: i32, | |
1738 | pub NumInstances: i32, | |
1739 | pub CodePage: u32, | |
1740 | pub PerfTime: i64, | |
1741 | pub PerfFreq: i64, | |
1742 | } | |
1743 | #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] | |
5e7ed085 FG |
1744 | impl ::core::marker::Copy for PERF_OBJECT_TYPE {} |
1745 | #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] | |
5e7ed085 FG |
1746 | impl ::core::clone::Clone for PERF_OBJECT_TYPE { |
1747 | fn clone(&self) -> Self { | |
1748 | *self | |
1749 | } | |
1750 | } | |
1751 | #[repr(C)] | |
04454e1e | 1752 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1753 | #[cfg(target_arch = "x86")] |
5e7ed085 FG |
1754 | pub struct PERF_OBJECT_TYPE { |
1755 | pub TotalByteLength: u32, | |
1756 | pub DefinitionLength: u32, | |
1757 | pub HeaderLength: u32, | |
1758 | pub ObjectNameTitleIndex: u32, | |
04454e1e | 1759 | pub ObjectNameTitle: ::windows_sys::core::PWSTR, |
5e7ed085 | 1760 | pub ObjectHelpTitleIndex: u32, |
04454e1e | 1761 | pub ObjectHelpTitle: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
1762 | pub DetailLevel: u32, |
1763 | pub NumCounters: u32, | |
1764 | pub DefaultCounter: i32, | |
1765 | pub NumInstances: i32, | |
1766 | pub CodePage: u32, | |
1767 | pub PerfTime: i64, | |
1768 | pub PerfFreq: i64, | |
1769 | } | |
1770 | #[cfg(target_arch = "x86")] | |
5e7ed085 FG |
1771 | impl ::core::marker::Copy for PERF_OBJECT_TYPE {} |
1772 | #[cfg(target_arch = "x86")] | |
5e7ed085 FG |
1773 | impl ::core::clone::Clone for PERF_OBJECT_TYPE { |
1774 | fn clone(&self) -> Self { | |
1775 | *self | |
1776 | } | |
1777 | } | |
1778 | #[repr(C)] | |
04454e1e | 1779 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1780 | pub struct PERF_PROVIDER_CONTEXT { |
1781 | pub ContextSize: u32, | |
1782 | pub Reserved: u32, | |
1783 | pub ControlCallback: PERFLIBREQUEST, | |
1784 | pub MemAllocRoutine: PERF_MEM_ALLOC, | |
1785 | pub MemFreeRoutine: PERF_MEM_FREE, | |
1786 | pub pMemContext: *mut ::core::ffi::c_void, | |
1787 | } | |
1788 | impl ::core::marker::Copy for PERF_PROVIDER_CONTEXT {} | |
1789 | impl ::core::clone::Clone for PERF_PROVIDER_CONTEXT { | |
1790 | fn clone(&self) -> Self { | |
1791 | *self | |
1792 | } | |
1793 | } | |
04454e1e | 1794 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1795 | pub const PERF_PROVIDER_DRIVER: u32 = 2u32; |
04454e1e | 1796 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1797 | pub const PERF_PROVIDER_KERNEL_MODE: u32 = 1u32; |
04454e1e | 1798 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1799 | pub const PERF_PROVIDER_USER_MODE: u32 = 0u32; |
04454e1e | 1800 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1801 | pub const PERF_REMOVE_COUNTER: u32 = 2u32; |
04454e1e | 1802 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1803 | pub const PERF_SIZE_DWORD: u32 = 0u32; |
04454e1e | 1804 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1805 | pub const PERF_SIZE_LARGE: u32 = 256u32; |
04454e1e | 1806 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1807 | pub const PERF_SIZE_VARIABLE_LEN: u32 = 768u32; |
04454e1e | 1808 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1809 | pub const PERF_SIZE_ZERO: u32 = 512u32; |
1810 | #[repr(C)] | |
04454e1e | 1811 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1812 | pub struct PERF_STRING_BUFFER_HEADER { |
1813 | pub dwSize: u32, | |
1814 | pub dwCounters: u32, | |
1815 | } | |
1816 | impl ::core::marker::Copy for PERF_STRING_BUFFER_HEADER {} | |
1817 | impl ::core::clone::Clone for PERF_STRING_BUFFER_HEADER { | |
1818 | fn clone(&self) -> Self { | |
1819 | *self | |
1820 | } | |
1821 | } | |
1822 | #[repr(C)] | |
04454e1e | 1823 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1824 | pub struct PERF_STRING_COUNTER_HEADER { |
1825 | pub dwCounterId: u32, | |
1826 | pub dwOffset: u32, | |
1827 | } | |
1828 | impl ::core::marker::Copy for PERF_STRING_COUNTER_HEADER {} | |
1829 | impl ::core::clone::Clone for PERF_STRING_COUNTER_HEADER { | |
1830 | fn clone(&self) -> Self { | |
1831 | *self | |
1832 | } | |
1833 | } | |
04454e1e | 1834 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1835 | pub const PERF_TEXT_ASCII: u32 = 65536u32; |
04454e1e | 1836 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1837 | pub const PERF_TEXT_UNICODE: u32 = 0u32; |
04454e1e | 1838 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1839 | pub const PERF_TIMER_100NS: u32 = 1048576u32; |
04454e1e | 1840 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1841 | pub const PERF_TIMER_TICK: u32 = 0u32; |
04454e1e | 1842 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1843 | pub const PERF_TYPE_COUNTER: u32 = 1024u32; |
04454e1e | 1844 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1845 | pub const PERF_TYPE_NUMBER: u32 = 0u32; |
04454e1e | 1846 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1847 | pub const PERF_TYPE_TEXT: u32 = 2048u32; |
04454e1e | 1848 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1849 | pub const PERF_TYPE_ZERO: u32 = 3072u32; |
04454e1e | 1850 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1851 | pub const PERF_WILDCARD_COUNTER: u32 = 4294967295u32; |
04454e1e | 1852 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
923072b8 | 1853 | pub const PERF_WILDCARD_INSTANCE: &str = "*"; |
04454e1e FG |
1854 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
1855 | pub type PLA_CABEXTRACT_CALLBACK = ::core::option::Option<unsafe extern "system" fn(filename: ::windows_sys::core::PCWSTR, context: *mut ::core::ffi::c_void)>; | |
1856 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
5e7ed085 | 1857 | pub const PLA_CAPABILITY_AUTOLOGGER: u32 = 32u32; |
04454e1e | 1858 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1859 | pub const PLA_CAPABILITY_LEGACY_SESSION: u32 = 8u32; |
04454e1e | 1860 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1861 | pub const PLA_CAPABILITY_LEGACY_SVC: u32 = 16u32; |
04454e1e | 1862 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1863 | pub const PLA_CAPABILITY_LOCAL: u32 = 268435456u32; |
04454e1e | 1864 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1865 | pub const PLA_CAPABILITY_V1_SESSION: u32 = 2u32; |
04454e1e | 1866 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1867 | pub const PLA_CAPABILITY_V1_SVC: u32 = 1u32; |
04454e1e | 1868 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1869 | pub const PLA_CAPABILITY_V1_SYSTEM: u32 = 4u32; |
04454e1e | 1870 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1871 | pub type PM_CLOSE_PROC = ::core::option::Option<unsafe extern "system" fn() -> u32>; |
04454e1e FG |
1872 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
1873 | pub type PM_COLLECT_PROC = ::core::option::Option<unsafe extern "system" fn(pvaluename: ::windows_sys::core::PCWSTR, ppdata: *mut *mut ::core::ffi::c_void, pcbtotalbytes: *mut u32, pnumobjecttypes: *mut u32) -> u32>; | |
1874 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
1875 | pub type PM_OPEN_PROC = ::core::option::Option<unsafe extern "system" fn(pcontext: ::windows_sys::core::PCWSTR) -> u32>; | |
1876 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] | |
5e7ed085 | 1877 | pub type PerfCounterDataType = i32; |
04454e1e | 1878 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1879 | pub const PERF_ERROR_RETURN: PerfCounterDataType = 0i32; |
04454e1e | 1880 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1881 | pub const PERF_SINGLE_COUNTER: PerfCounterDataType = 1i32; |
04454e1e | 1882 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1883 | pub const PERF_MULTIPLE_COUNTERS: PerfCounterDataType = 2i32; |
04454e1e | 1884 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1885 | pub const PERF_MULTIPLE_INSTANCES: PerfCounterDataType = 4i32; |
04454e1e | 1886 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1887 | pub const PERF_COUNTERSET: PerfCounterDataType = 6i32; |
1888 | pub type PerfProviderHandle = isize; | |
1889 | pub type PerfQueryHandle = isize; | |
04454e1e | 1890 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1891 | pub type PerfRegInfoType = i32; |
04454e1e | 1892 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1893 | pub const PERF_REG_COUNTERSET_STRUCT: PerfRegInfoType = 1i32; |
04454e1e | 1894 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1895 | pub const PERF_REG_COUNTER_STRUCT: PerfRegInfoType = 2i32; |
04454e1e | 1896 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1897 | pub const PERF_REG_COUNTERSET_NAME_STRING: PerfRegInfoType = 3i32; |
04454e1e | 1898 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1899 | pub const PERF_REG_COUNTERSET_HELP_STRING: PerfRegInfoType = 4i32; |
04454e1e | 1900 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1901 | pub const PERF_REG_COUNTER_NAME_STRINGS: PerfRegInfoType = 5i32; |
04454e1e | 1902 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1903 | pub const PERF_REG_COUNTER_HELP_STRINGS: PerfRegInfoType = 6i32; |
04454e1e | 1904 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1905 | pub const PERF_REG_PROVIDER_NAME: PerfRegInfoType = 7i32; |
04454e1e | 1906 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1907 | pub const PERF_REG_PROVIDER_GUID: PerfRegInfoType = 8i32; |
04454e1e | 1908 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1909 | pub const PERF_REG_COUNTERSET_ENGLISH_NAME: PerfRegInfoType = 9i32; |
04454e1e | 1910 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1911 | pub const PERF_REG_COUNTER_ENGLISH_NAMES: PerfRegInfoType = 10i32; |
04454e1e | 1912 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1913 | pub type REAL_TIME_DATA_SOURCE_ID_FLAGS = u32; |
04454e1e | 1914 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1915 | pub const DATA_SOURCE_REGISTRY: REAL_TIME_DATA_SOURCE_ID_FLAGS = 1u32; |
04454e1e | 1916 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1917 | pub const DATA_SOURCE_WBEM: REAL_TIME_DATA_SOURCE_ID_FLAGS = 4u32; |
04454e1e | 1918 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1919 | pub type ReportValueTypeConstants = i32; |
04454e1e | 1920 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1921 | pub const sysmonDefaultValue: ReportValueTypeConstants = 0i32; |
04454e1e | 1922 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1923 | pub const sysmonCurrentValue: ReportValueTypeConstants = 1i32; |
04454e1e | 1924 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1925 | pub const sysmonAverage: ReportValueTypeConstants = 2i32; |
04454e1e | 1926 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1927 | pub const sysmonMinimum: ReportValueTypeConstants = 3i32; |
04454e1e | 1928 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1929 | pub const sysmonMaximum: ReportValueTypeConstants = 4i32; |
04454e1e | 1930 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1931 | pub type ResourcePolicy = i32; |
04454e1e | 1932 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1933 | pub const plaDeleteLargest: ResourcePolicy = 0i32; |
04454e1e | 1934 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1935 | pub const plaDeleteOldest: ResourcePolicy = 1i32; |
1936 | pub const S_PDH: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 81159000, data2: 50337, data3: 16795, data4: [128, 35, 35, 183, 57, 2, 222, 44] }; | |
1937 | pub const ServerDataCollectorSet: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946865, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
1938 | pub const ServerDataCollectorSetCollection: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946866, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
1939 | pub const SourcePropPage: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 217262753, data2: 30065, data3: 4560, data4: [147, 196, 0, 170, 0, 163, 221, 234] }; | |
04454e1e | 1940 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1941 | pub type StreamMode = i32; |
04454e1e | 1942 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1943 | pub const plaFile: StreamMode = 1i32; |
04454e1e | 1944 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1945 | pub const plaRealTime: StreamMode = 2i32; |
04454e1e | 1946 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1947 | pub const plaBoth: StreamMode = 3i32; |
04454e1e | 1948 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1949 | pub const plaBuffering: StreamMode = 4i32; |
04454e1e | 1950 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1951 | pub type SysmonBatchReason = i32; |
04454e1e | 1952 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1953 | pub const sysmonBatchNone: SysmonBatchReason = 0i32; |
04454e1e | 1954 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1955 | pub const sysmonBatchAddFiles: SysmonBatchReason = 1i32; |
04454e1e | 1956 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1957 | pub const sysmonBatchAddCounters: SysmonBatchReason = 2i32; |
04454e1e | 1958 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1959 | pub const sysmonBatchAddFilesAutoCounters: SysmonBatchReason = 3i32; |
04454e1e | 1960 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1961 | pub type SysmonDataType = i32; |
04454e1e | 1962 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1963 | pub const sysmonDataAvg: SysmonDataType = 1i32; |
04454e1e | 1964 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1965 | pub const sysmonDataMin: SysmonDataType = 2i32; |
04454e1e | 1966 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1967 | pub const sysmonDataMax: SysmonDataType = 3i32; |
04454e1e | 1968 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1969 | pub const sysmonDataTime: SysmonDataType = 4i32; |
04454e1e | 1970 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1971 | pub const sysmonDataCount: SysmonDataType = 5i32; |
04454e1e | 1972 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1973 | pub type SysmonFileType = i32; |
04454e1e | 1974 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1975 | pub const sysmonFileHtml: SysmonFileType = 1i32; |
04454e1e | 1976 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1977 | pub const sysmonFileReport: SysmonFileType = 2i32; |
04454e1e | 1978 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1979 | pub const sysmonFileCsv: SysmonFileType = 3i32; |
04454e1e | 1980 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1981 | pub const sysmonFileTsv: SysmonFileType = 4i32; |
04454e1e | 1982 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1983 | pub const sysmonFileBlg: SysmonFileType = 5i32; |
04454e1e | 1984 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1985 | pub const sysmonFileRetiredBlg: SysmonFileType = 6i32; |
04454e1e | 1986 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
1987 | pub const sysmonFileGif: SysmonFileType = 7i32; |
1988 | pub const SystemDataCollectorSet: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946886, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
1989 | pub const SystemDataCollectorSetCollection: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946887, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
1990 | pub const SystemMonitor: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3302152416, data2: 53725, data3: 4558, data4: [148, 15, 0, 128, 41, 0, 67, 71] }; | |
1991 | pub const SystemMonitor2: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2133874572, data2: 24376, data3: 17938, data4: [172, 254, 110, 208, 76, 123, 122, 248] }; | |
1992 | pub const TraceDataProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946835, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
1993 | pub const TraceDataProviderCollection: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946833, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
1994 | pub const TraceSession: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946844, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
1995 | pub const TraceSessionCollection: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 58946864, data2: 2443, data3: 4568, data4: [148, 20, 80, 80, 84, 80, 48, 48] }; | |
04454e1e | 1996 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1997 | pub type ValueMapType = i32; |
04454e1e | 1998 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 1999 | pub const plaIndex: ValueMapType = 1i32; |
04454e1e | 2000 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2001 | pub const plaFlag: ValueMapType = 2i32; |
04454e1e | 2002 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2003 | pub const plaFlagArray: ValueMapType = 3i32; |
04454e1e | 2004 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2005 | pub const plaValidation: ValueMapType = 4i32; |
04454e1e | 2006 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2007 | pub const WINPERF_LOG_DEBUG: u32 = 2u32; |
04454e1e | 2008 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2009 | pub const WINPERF_LOG_NONE: u32 = 0u32; |
04454e1e | 2010 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2011 | pub const WINPERF_LOG_USER: u32 = 1u32; |
04454e1e | 2012 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2013 | pub const WINPERF_LOG_VERBOSE: u32 = 3u32; |
04454e1e | 2014 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2015 | pub type WeekDays = i32; |
04454e1e | 2016 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2017 | pub const plaRunOnce: WeekDays = 0i32; |
04454e1e | 2018 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2019 | pub const plaSunday: WeekDays = 1i32; |
04454e1e | 2020 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2021 | pub const plaMonday: WeekDays = 2i32; |
04454e1e | 2022 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2023 | pub const plaTuesday: WeekDays = 4i32; |
04454e1e | 2024 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2025 | pub const plaWednesday: WeekDays = 8i32; |
04454e1e | 2026 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2027 | pub const plaThursday: WeekDays = 16i32; |
04454e1e | 2028 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2029 | pub const plaFriday: WeekDays = 32i32; |
04454e1e | 2030 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 | 2031 | pub const plaSaturday: WeekDays = 64i32; |
04454e1e | 2032 | #[doc = "*Required features: `\"Win32_System_Performance\"`*"] |
5e7ed085 FG |
2033 | pub const plaEveryday: WeekDays = 127i32; |
2034 | pub type _ICounterItemUnion = *mut ::core::ffi::c_void; | |
2035 | pub type _ISystemMonitorUnion = *mut ::core::ffi::c_void; |