Source
typedef BOOL (__stdcall *GetFileInformationByHandleEx_t)(HANDLE, zbx_file_info_by_handle_class_t, LPVOID, DWORD);
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/* this struct must be only modified along with mapping builtin_counter_ref[] in perfmon.c */
typedef enum
{
PCI_PROCESSOR_QUEUE_LENGTH = 0,
PCI_SYSTEM_UP_TIME,
PCI_PROCESSOR_TIME,
PCI_INFORMATION_PROCESSOR_TIME,
PCI_TOTAL_SESSIONS,
PCI_MAX_INDEX = PCI_TOTAL_SESSIONS
}
zbx_builtin_counter_ref_t;
typedef enum
{
PERF_COUNTER_NOTSUPPORTED = 0,
PERF_COUNTER_INITIALIZED,
PERF_COUNTER_GET_SECOND_VALUE, /* waiting for the second raw value (needed for some, e.g. rate, counters) */
PERF_COUNTER_ACTIVE
}
zbx_perf_counter_status_t;
typedef enum
{
PERF_COUNTER_LANG_DEFAULT = 0,
PERF_COUNTER_LANG_EN
}
zbx_perf_counter_lang_t;
typedef struct perf_counter_id
{
struct perf_counter_id *next;
unsigned long pdhIndex;
wchar_t name[PDH_MAX_COUNTER_NAME];
}