Programming, System Programming, Win32, C.
gets(path); printf("\n"); WalkDir(path); return 0; } void WalkDir(LPCTSTR path) { char cwd[1024]; if (!GetCurrentDirectory(1024, cwd)) ExitSys("GetCurrentDirectory", EXIT_FAILURE); WalkDirRecur(path, 0); if (!SetCurrentDirectory(cwd)) return; } void WalkDirRecur(LPCTSTR path, int space) { HANDLE