// Detect It Easy: detection rule file
// Author: Arjan Onwezen
// Info: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-vhdx/83e061f8-f6e2-4de1-91bd-5d518a43d477

meta("format", "Virtual Hard Disk v2 (VHDX)");

function detect() {
    if (Binary.getSize() > 0x100000) {
        if (Binary.compare("76 68 64 78 66 69 6C 65")) {
            bDetected = true;
            sOption("CreaterApp:" + Binary.read_unicodeString(8, 50));
        }
    }

    return result();
}