Exemple #1
0
        public static PdhCounter AddCounter(this PdhQuery query, string path)
        {
            Pdh
            .PdhAddEnglishCounter(query, path, IntPtr.Zero, out var counter)
            .EnsureSuccess(nameof(Pdh.PdhAddEnglishCounter));

            return(counter);
        }
Exemple #2
0
 public static extern PdhStatus PdhCollectQueryData(PdhQuery query);
Exemple #3
0
 public static extern PdhStatus PdhAddEnglishCounter(PdhQuery query, string path, IntPtr userData,
                                                     out PdhCounter counter);
Exemple #4
0
 public static extern PdhStatus PdhOpenQuery(string dataSource, IntPtr userData, out PdhQuery query);
Exemple #5
0
 public static PdhStatus CollectQueryData(this PdhQuery query) => Pdh.PdhCollectQueryData(query);