I dont think anything like that is possible but would like to be proved wrong by some other C/C++ guys.