{"success":true,"data":{"ext":"pwi","name":"Microsoft Windows Mobile personal note file","description":"Microsoft Windows Mobile personal note file (PWI) is a proprietary note file format created by Microsoft for Windows Mobile devices. It was used by Pocket Word and related mobile applications to store short text notes, reminders, and synchronized personal information. The format is now largely obsolete, and while it is generally safe to open, files from untrusted sources should still be handled with standard caution.","mime":[],"risk_level":"Safe","signatures":[{"hex":"7B 5C 70 77 69","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_pwi(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PWI by magic bytes.\"\"\"\n    signature = bytes([0x7B, 0x5C, 0x70, 0x77, 0x69])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isPWI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x7B, 0x5C, 0x70, 0x77, 0x69]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsPWI(data []byte) bool {\n    signature := []byte{0x7B, 0x5C, 0x70, 0x77, 0x69}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"}}}