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

#ifndef NETDATA_WINDOWS_INTERNALS_H
#define NETDATA_WINDOWS_INTERNALS_H

#include "libnetdata/libnetdata.h"

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

#include "perflib-rrd.h"

#endif //NETDATA_WINDOWS_INTERNALS_H