perl/c/c++ -> how to obtain all previous file versions on network drive

Monday, July 7, 2014

is there a way to list all previous version of a file or directory on network drive in windows?

On this page - ,there is a document from Microsoft that shows the usage of an "FSCTL_SRV_ENUMERATE_SNAPSHOT" request but there are no examples on how to use it in the code. If some of you knows how to write this in c/c++ or perl it would help me.