{"success":true,"data":{"ext":"ctl","name":"Visual Basic User-defined Control file","description":"Visual Basic User-defined Control (CTL) is a file format associated with Microsoft Visual Basic and maintained as part of the Visual Basic development environment. It stores design-time information for custom controls used in Visual Basic applications, including properties and component metadata for form development. The format is legacy and primarily relevant to older Visual Basic projects; files from untrusted sources should be reviewed before opening in development tools.","mime":[],"risk_level":"Safe","signatures":[{"hex":"56 45 52 53 49 4F 4E 20","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["suo","dsw","pch","vcw","dsp"],"usage":{"python":"def is_ctl(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CTL by magic bytes.\"\"\"\n    signature = bytes([0x56, 0x45, 0x52, 0x53, 0x49, 0x4F, 0x4E, 0x20])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isCTL(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x56, 0x45, 0x52, 0x53, 0x49, 0x4F, 0x4E, 0x20]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsCTL(data []byte) bool {\n    signature := []byte{0x56, 0x45, 0x52, 0x53, 0x49, 0x4F, 0x4E, 0x20}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Source Code"}}