summaryrefslogtreecommitdiffstats
path: root/src/collectors/windows.plugin/windows-internals.h
blob: 1b7cccc730e725eb17ace4278b16beaa72c37938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_WINDOWS_INTERNALS_H
#define NETDATA_WINDOWS_INTERNALS_H

#include <windows.h>

static inline ULONGLONG FileTimeToULL(FILETIME ft) {
    ULARGE_INTEGER ul;
    ul.LowPart = ft.dwLowDateTime;
    ul.HighPart = ft.dwHighDateTime;
    return ul.QuadPart;
}

#include "perflib.h"
#include "perflib-rrd.h"

#endif //NETDATA_WINDOWS_INTERNALS_H