Code changes for Windows Phone 8 missing c++ func.