IPackageManifest interface
This API is defined in the header file sysroot-*-kos/include/component/package_manager/i_package_manifest.h
from the KasperskyOS SDK.
The API lets you get the KPA package manifest key values. For more details about the available keys of the KPA package manifest, see "KPA package manifest"
Information about API functions is provided in the table below.
Getting program ID
To get the ID of a program that was installed from a KPA package, call the GetPackageID()
function.
Getting information about KPA package components
To get information about KPA package components, call the GetApplicationsInfo()
function. Using the applications
output parameter, the function returns information about KPA package components as a vector of ApplicationInfo
structures.
An extensions
structure element describes an object in JSON format. ManifestType
is an alias of the nlohmann:json
type.
Getting program startup configurations
To get information about the startup configurations of a program installed from a KPA package, call the GetRunConfigurationsInfo()
function. Using the runConfigurations
output parameter, the function returns information about program startup configurations as a vector of RunConfigurationInfo
structures.
Receiving information about a program
To get information about a program installed from a KPA package, call the GetPackageInfo()
function. Using the packageInfo
output parameter, the function returns information about startup configurations in the PackageInfo
structure.
Getting information about the isolated storage of a program
To get information about the isolated storage of a program, call the GetPrivateStorageInfo()
function. Using the packageInfo
output parameter, the function returns information about startup configurations in the PrivateStorage
structure.
Getting information about objects of an arbitrary format
To get information about objects of an arbitrary format that were added by the KPA package developer (the extensions
key from the KPA package manifest), call the Get()
function.
i_package_manifest.h functions
Function |
Information about the function |
---|---|
|
Purpose Gets the unique ID of a program installed from a KPA package. Parameters
Returned values If successful, the function returns |
|
Purpose Gets information about KPA package components. Parameters
Returned values If successful, the function returns |
|
Purpose Gets information about the startup configurations of a program installed from a KPA package. Parameters
Returned values If successful, the function returns |
|
Purpose Gets information about a program installed from a KPA package. Parameters
Returned values If successful, the function returns |
|
Purpose Gets information about the isolated storage of a program. Parameters
Returned values If successful, the function returns |
|
Purpose Gets information about objects of an arbitrary format that were added to the manifest by the KPA package developer. Parameters N/A Returned values Returns the pointer of an object with the type |
Usage example:
client.cpp