KasperskyOS Community Edition 1.3
Contents
Contents
ISystemController interface
The API is defined in the header file sysroot-*-kos/include/component/execution_manager/i_system_control.h
from the KasperskyOS SDK.
The API lets you terminate the system.
Information about API functions is provided in the table below.
i_system_control.h functions
Function |
Information about the function |
---|---|
|
Purpose Stops all running processes, then terminates the ExecutionManager process, then sends a device shutdown request to the kernel. Parameters N/A Returned values If successful, the function returns |
Usage example:
client.cpp
int main(int argc, const char *argv[])
{
// ...
if (sc->StopAllEntities() != kos::Ok)
{
std::cerr << "Cannot stop all processes\n";
return EXIT_FAILURE;
}
// ...
}