Programming, System Programming, Win32, C.
space; ++i) putchar(' '); printf("%s\n", fd.cFileName); space += 4; WalkDirRecur(fd.cFileName, space); space -= 4; if (!SetCurrentDirectory("..")) return; } } while (FindNextFile(hFind, &fd)); FindClose(hFind); } void ExitSys(LPCTSTR lpszMsg, int status) { DWORD dwLastError = GetLastError(); LPTSTR