Programming, System Programming, Win32, C.
WalkDir(path); return 0; } void WalkDir(LPCTSTR path) { char cwd[1024]; if (!GetCurrentDirectory(1024, cwd)) ExitSys("GetCurrentDirectory", EXIT_FAILURE); WalkDirRecur(path); if (!SetCurrentDirectory(cwd)) return; } void WalkDirRecur(LPCTSTR path) { HANDLE hFind; WIN32_FIND_DATA fd; if