{"success":true,"data":{"ext":"shw","name":"Corel Presentations slideshow","description":"Corel Presentations slideshow (SHW) is a presentation file format created by Corel for its Corel Presentations software, part of the WordPerfect Office suite. It is used to store slide decks for business presentations, training materials, and other on-screen presentations, and was opened and edited in Corel Presentations and related office suites. The format is now largely legacy and may not be supported by modern presentation applications, so files from untrusted sources should be handled with usual caution.","mime":["application/x-corelpresentations"],"risk_level":"Safe","signatures":[{"hex":"52 49 46 46","offset":0,"sources":[{"name":"file/file magic database (RIFF container)","url":"https://github.com/file/file/blob/master/magic/Magdir/riff"}]},{"hex":"52 49 46 46 73 68 77 35","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"53 48 4F 57","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["cdr","cmx","ani","cda","ds4","mmm"],"usage":{"python":"def is_shw(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SHW by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isSHW(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsSHW(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}