ReactOS Fundraising Campaign 2012
 
€ 3,303 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

static INT ForRecursive ( PARSED_COMMAND Cmd,
LPTSTR  List,
TCHAR Buffer,
TCHAR BufPos 
) [static]

Definition at line 422 of file for.c.

Referenced by ExecuteFor().

00423 {
00424     HANDLE hFind;
00425     WIN32_FIND_DATA w32fd;
00426     INT Ret = 0;
00427 
00428     if (BufPos[-1] != _T('\\'))
00429     {
00430         *BufPos++ = _T('\\');
00431         *BufPos = _T('\0');
00432     }
00433 
00434     Ret = ForDir(Cmd, List, Buffer, BufPos);
00435 
00436     _tcscpy(BufPos, _T("*"));
00437     hFind = FindFirstFile(Buffer, &w32fd);
00438     if (hFind == INVALID_HANDLE_VALUE)
00439         return Ret;
00440     do
00441     {
00442         if (!(w32fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
00443             continue;
00444         if (_tcscmp(w32fd.cFileName, _T(".")) == 0 ||
00445             _tcscmp(w32fd.cFileName, _T("..")) == 0)
00446             continue;
00447         Ret = ForRecursive(Cmd, List, Buffer, _stpcpy(BufPos, w32fd.cFileName));
00448     } while (!Exiting(Cmd) && FindNextFile(hFind, &w32fd));
00449     FindClose(hFind);
00450     return Ret;
00451 }


Generated on Tue May 15 05:09:32 2012 for ReactOS by doxygen 1.6.3

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.