KSC Open API
Kaspersky Security Center API description
Linux Kernel version

Unlike Windows, where the version is VersionMajor.VersionMinor, in Linux the version consists of 4 numbers. The number pair <KLHST_WKS_OS_VER_MAJOR, KLHST_WKS_OS_VER_MINOR> encodes four Linux version numbers a.b.c.d. For example, encode Linux Kernel version of value 1284.153. Then the number 1284 encodes the first pair of numbers, and 153 the second.

  • a=KLHST_WKS_OS_VER_MAJOR/256=1284/256=5
  • b=KLHST_WKS_OS_VER_MAJOR%256=1284%256=4
  • c=KLHST_WKS_OS_VER_MINOR/256=153/256=0
  • d=KLHST_WKS_OS_VER_MINOR%256=153%256=153