i am developing a synchronization app, i need to store unique id in the metadata of each files when they are put in to my app, thus i can match the similar files between server and client,(matching the similar files using name is not good ,name can be changed at any time, but if each file has unique id even file is modified or renamed i can identify the similar files)
so i need to know how can i insert my custom attribute(unique id) to a file's metadata in linux and windows?is there any c/c++ libraries to do this?(my app is being developed in c++)