"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const child_process_1 = require("child_process");
const path = require("path");
function getIcon(exePath, callback) {
    const helperBinaryPath = path.join(__dirname, 'FileIconInfo.exe');
    const child = child_process_1.execFile(helperBinaryPath, (error, stdout, stderr) => {
        if (error)
            throw error;
        else
            callback(stdout);
    });
    child.stdin.write(`${exePath}\n`);
}
exports.getIcon = getIcon;
