I am not sure this is posted in the right board, but I want to add a volume shadow copy function (windows) inside a C program that in turn calls rsync. The program is done in C (as opposed to shell) to allow effecient error checking and verfication.
The vshadow.exe (from VSS SDK) command will create the shadow copy, but it only exists as long as vshadow.exe is running. This is solved in shell examples by callback to the original script with a variable defined so the script knows this is the callback.
My question is, is it possible to have a c program call an external program like vshadow.exe (called with system() ) to return a callback to a function inside the c program?
any help will be greatly appreciated.