Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

  1. //+--------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: entry.cxx
  7. //
  8. // Contents: Entry implementations
  9. //
  10. //---------------------------------------------------------------
  11. #include "dfhead.cxx"
  12. //+--------------------------------------------------------------
  13. //
  14. // Member: PEntry::CopyTimesFrom, public
  15. //
  16. // Synopsis: Copies one entries times to another
  17. //
  18. // Arguments: [penFrom] - From
  19. //
  20. // Returns: Appropriate status code
  21. //
  22. //---------------------------------------------------------------
  23. SCODE PEntry::CopyTimesFrom(PEntry *penFrom)
  24. {
  25. SCODE sc;
  26. TIME_T tm;
  27. olDebugOut((DEB_ITRACE, "In PEntry::CopyTimesFrom(%p)\n",
  28. penFrom));
  29. olChk(penFrom->GetTime(WT_CREATION, &tm));
  30. olChk(SetTime(WT_CREATION, tm));
  31. olChk(penFrom->GetTime(WT_MODIFICATION, &tm));
  32. olChk(SetTime(WT_MODIFICATION, tm));
  33. olChk(penFrom->GetTime(WT_ACCESS, &tm));
  34. olChk(SetTime(WT_ACCESS, tm));
  35. olDebugOut((DEB_ITRACE, "Out PEntry::CopyTimesFrom\n"));
  36. // Fall through
  37. EH_Err:
  38. return sc;
  39. }