diff options
Diffstat (limited to 'include/symbols.h')
-rw-r--r-- | include/symbols.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/symbols.h b/include/symbols.h index 163742c10aa..069e71a8611 100644 --- a/include/symbols.h +++ b/include/symbols.h @@ -22,10 +22,28 @@ #if defined(_WINDOWS) +# define _WIN32_WINNT 0x0500 /* Target MS Windows 2000 and later. */ + +/* some definitions which are not available on older MS Windows versions */ +typedef enum { + FileIdInfo = 18 /* we need only one value, the rest of enumerated values are omitted here */ +} FILE_INFO_BY_HANDLE_CLASS; + +typedef struct { + ULONGLONG LowPart; + ULONGLONG HighPart; +} EXT_FILE_ID_128; + +typedef struct { + ULONGLONG VolumeSerialNumber; + EXT_FILE_ID_128 FileId; +} FILE_ID_INFO; + DWORD (__stdcall *zbx_GetGuiResources)(HANDLE, DWORD); BOOL (__stdcall *zbx_GetProcessIoCounters)(HANDLE, PIO_COUNTERS); BOOL (__stdcall *zbx_GetPerformanceInfo)(PPERFORMANCE_INFORMATION, DWORD); BOOL (__stdcall *zbx_GlobalMemoryStatusEx)(LPMEMORYSTATUSEX); +BOOL (__stdcall *zbx_GetFileInformationByHandleEx)(HANDLE, FILE_INFO_BY_HANDLE_CLASS, LPVOID, DWORD); void import_symbols(); |