Windows API to track if file was opened/modified

What you're looking for would be a file system hook, and that unfortunately is not directly supported by Windows. This was discussed briefly about seven years ago in StackOverflow, https://stackoverflow.com/questions/447856/hooking-into-windows-file-access but answers at that time were pretty unsatisfying, it seems.