summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/os/system-maps/cached-sid-username.h
blob: 4077cad11d91dd12c443e604f75c3dac9fba3d8b (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_CACHED_SID_USERNAME_H
#define NETDATA_CACHED_SID_USERNAME_H

#include "../../libnetdata.h"

#if defined(OS_WINDOWS)
#include "../../string/utf8.h"

bool cached_sid_to_account_domain_sidstr(void *sid, TXT_UTF8 *dst_account, TXT_UTF8 *dst_domain, TXT_UTF8 *dst_sid_str);
bool cached_sid_to_buffer_append(void *sid, BUFFER *dst, const char *prefix);
void cached_sid_username_init(void);
STRING *cached_sid_fullname_or_sid_str(void *sid);
#endif

#endif //NETDATA_CACHED_SID_USERNAME_H