// Author: DosX
// E-Mail: collab@kay-software.ru
// GitHub: https://github.com/DosX-dev
// Telegram: @DosX_dev

init("library", "Microsoft C/C++ Runtime");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (PE.isLibraryPresent("vcruntime140.dll") ||
        PE.isLibraryPresent("vcruntime140_1.dll")) {
        bDetected = true;
        sOptions = "dynamic";
    }

    return result(bShowType, bShowVersion, bShowOptions);
}