Feat: Add privilege column (SYSTEM/Admin/User) to online host list

This commit is contained in:
yuanyuanxiang
2026-06-30 22:44:31 +02:00
parent bcccbefb77
commit 6d0b1bb07b
6 changed files with 39 additions and 29 deletions

View File

@@ -96,17 +96,18 @@ struct NotifyConfig {
inline const char* GetColumnName(int index) {
static const char* names[] = {
"IP", // 0
"Address", // 1
"Location", // 2
"Address", // 1
"Location", // 2
"ComputerName", // 3
"OS", // 4
"CPU", // 5
"Camera", // 6
"RTT", // 7
"Version", // 8
"InstallTime", // 9
"ActiveWindow", // 10
"ClientType", // 11
"OS", // 4
"CPU", // 5
"Camera", // 6
"RTT", // 7
"Version", // 8
"Privilege", // 9 ONLINELIST_PRIVILEGE
"InstallTime", // 10 ONLINELIST_INSTALLTIME
"ActiveWindow", // 11 ONLINELIST_LOGINTIME
"ClientType", // 12 ONLINELIST_CLIENTTYPE
};
if (index >= 0 && index < sizeof(names)/sizeof(names[0])) {
return names[index];