Microsoft Windows Mobile personal note file
application/octet-stream
Magic Bytes
Offset: 0
7B 5C 72 74 66
Microsoft Windows Mobile personal note file (PWI) is a proprietary document format developed by Microsoft for use on legacy handheld devices. This format serves as the default output for the Notes application on Windows CE and Pocket PC systems, capturing handwritten ink data and text. As a legacy format, it is largely obsolete and requires specific desktop synchronization software or conversion tools for access on modern operating systems.
Validation Code
How to validate .pwi files in Python
Python
def is_pwi(file_path: str) -> bool:
"""Check if file is a valid PWI by magic bytes."""
signature = bytes([0x7B, 0x5C, 0x72, 0x74, 0x66])
with open(file_path, "rb") as f:
return f.read(5) == signature
How to validate .pwi files in Node.js
Node.js
function isPWI(buffer: Buffer): boolean {
const signature = Buffer.from([0x7B, 0x5C, 0x72, 0x74, 0x66]);
return buffer.subarray(0, 5).equals(signature);
}
Go
func IsPWI(data []byte) bool {
signature := []byte{0x7B, 0x5C, 0x72, 0x74, 0x66}
if len(data) < 5 {
return false
}
return bytes.Equal(data[:5], signature)
}
API Endpoint
GET
/api/v1/pwi
curl https://filesignature.org/api/v1/pwi