{"success":true,"data":{"ext":"dsw","name":"Microsoft Visual Studio workspace file","description":"Microsoft Visual Studio workspace file (DSW) is a project workspace format created and maintained by Microsoft for Visual Studio. It stores collections of related projects, build settings, and developer preferences for organizing software development work in older versions of Visual C++ and Visual Studio. The format is largely legacy and has been replaced in newer toolchains by solution files; it is generally safe and contains configuration data rather than executable content.","mime":["text/plain"],"risk_level":"Safe","signatures":[{"hex":"64 73 77 66 69 6C 65","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["dsp","suo","vcw","ctl","pch"],"usage":{"python":"def is_dsw(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DSW by magic bytes.\"\"\"\n    signature = bytes([0x64, 0x73, 0x77, 0x66, 0x69, 0x6C, 0x65])\n    with open(file_path, \"rb\") as f:\n        return f.read(7) == signature","node":"function isDSW(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x64, 0x73, 0x77, 0x66, 0x69, 0x6C, 0x65]);\n  return buffer.subarray(0, 7).equals(signature);\n}","go":"func IsDSW(data []byte) bool {\n    signature := []byte{0x64, 0x73, 0x77, 0x66, 0x69, 0x6C, 0x65}\n    if len(data) < 7 {\n        return false\n    }\n    return bytes.Equal(data[:7], signature)\n}"},"category":"Source Code"}}