The
DSOFile
library only applies to Microsoft Office files, and only if they're saved in the old Office 2003 format. It
doesn't work with
.txt
files.
You'll need to P/Invoke the Structured Storage API, or use the Windows API Code Pack to modify the custom properties for regular files. For details, see
this Stack Overflow answer[
^].