/* * @implemented */ BOOL WINAPI MoveFileA(IN LPCSTR lpExistingFileName, IN LPCSTR lpNewFileName) { return MoveFileWithProgressA(lpExistingFileName, lpNewFileName, NULL, NULL, MOVEFILE_COPY_ALLOWED); }
/* * @implemented */ BOOL WINAPI MoveFileExA(IN LPCSTR lpExistingFileName, IN LPCSTR lpNewFileName OPTIONAL, IN DWORD dwFlags) { return MoveFileWithProgressA(lpExistingFileName, lpNewFileName, NULL, NULL, dwFlags); }
BOOL My_MoveFileWithProgressA() { LPCSTR lpExistingFileName=NULL; LPCSTR lpNewFileName=NULL; LPPROGRESS_ROUTINE lpProgressRoutine=NULL; LPVOID lpData=NULL; DWORD dwFlags=NULL; BOOL returnVal_Real = NULL; BOOL returnVal_Intercepted = NULL; DWORD error_Real = 0; DWORD error_Intercepted = 0; __try{ disableInterception(); returnVal_Real = MoveFileWithProgressA (lpExistingFileName,lpNewFileName,lpProgressRoutine,lpData,dwFlags); error_Real = GetLastError(); enableInterception(); returnVal_Intercepted = MoveFileWithProgressA (lpExistingFileName,lpNewFileName,lpProgressRoutine,lpData,dwFlags); error_Intercepted = GetLastError(); }__except(puts("in filter"), 1){puts("exception caught");} return ((returnVal_Real == returnVal_Intercepted) && (error_Real == error_Intercepted)); }
/* * @implemented */ BOOL WINAPI MoveFileExA ( LPCSTR lpExistingFileName, LPCSTR lpNewFileName, DWORD dwFlags ) { return MoveFileWithProgressA (lpExistingFileName, lpNewFileName, NULL, NULL, dwFlags); }