C layer of the System module: threads, CPU, memory and disk usage, the statistics monitor and the console window.
The semantics are the ones of 'ethereal/cpp/system/'. What the Platform C layer ('ethereal/c/platform/platform.h') already covers is not repeated here:
- Processor facts (cores, brand, vendor, features, caches): ETLC_PlatformCpuFacts and ETLC_PlatformCpuFeatureName.
- Free physical memory: ETLC_PlatformAvailableMemory.
- Physical disks: ETLC_PlatformEnumDisks.
- Current thread id and name: ETLC_PlatformCurrentThreadId, ETLC_PlatformSetThreadName, ETLC_PlatformGetThreadName.
- Suspending and resuming any thread by id: ETLC_PlatformSuspendThread, ETLC_PlatformResumeThread.
Terminal output (colors, cursor, width) is in 'ethereal/c/cli/console.h'. Here there is only the console window of a Windows process, the one of 'console.hpp'.
Threads: the library allocates the handle. Destroying it does not stop the thread, it only releases the handle. There is no forced termination (TerminateThread is unsafe and has no POSIX equivalent) and no affinity (the C++ side has none).
The CPU, disk and monitor readings keep internal state in the C++ side and are not thread safe. Call them from one thread.
Every export returns 'int'. Zero is success, negative is an error. The values are part of the ABI.