windows-nt/Source/XPSP1/NT/com/ole32/stg/ref/entry.cxx

45 lines
1.1 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+--------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1996.
//
// File: entry.cxx
//
// Contents: Entry implementations
//
//---------------------------------------------------------------
#include "dfhead.cxx"
//+--------------------------------------------------------------
//
// Member: PEntry::CopyTimesFrom, public
//
// Synopsis: Copies one entries times to another
//
// Arguments: [penFrom] - From
//
// Returns: Appropriate status code
//
//---------------------------------------------------------------
SCODE PEntry::CopyTimesFrom(PEntry *penFrom)
{
SCODE sc;
TIME_T tm;
olDebugOut((DEB_ITRACE, "In PEntry::CopyTimesFrom(%p)\n",
penFrom));
olChk(penFrom->GetTime(WT_CREATION, &tm));
olChk(SetTime(WT_CREATION, tm));
olChk(penFrom->GetTime(WT_MODIFICATION, &tm));
olChk(SetTime(WT_MODIFICATION, tm));
olChk(penFrom->GetTime(WT_ACCESS, &tm));
olChk(SetTime(WT_ACCESS, tm));
olDebugOut((DEB_ITRACE, "Out PEntry::CopyTimesFrom\n"));
// Fall through
EH_Err:
return sc;
}