// Detect It Easy: detection rule file
// Author: Jupiter

// https://www.xojo.com
meta("library", "Xojo");

function detect() {
    if (PE.section["xojoinit"]) {
        // plugins
        if (PE.section["xojoplgn"]) {
            sOptions = sOptions.append("plugins");
        }

        // x64 | x86
        if (PE.isLibraryPresent("XojoGUIFramework64.dll")) {
            sVersion = "x64";
        } else if (PE.isLibraryPresent("XojoGUIFramework32.dll")) {
            sVersion = "x86";
        }
        //sVersion="2018r2";
        bDetected = true;
    }

    return result();
}