windows-nt/Source/XPSP1/NT/com/svcdlls/trksvcs/itrkadmn/restore.cpp

42 lines
748 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
#include "pch.cxx"
#pragma hdrstop
#include <trklib.hxx>
#include <trksvr.hxx>
#include "stdafx.h"
#include "ITrkAdmn.h"
#include "Restore.h"
/////////////////////////////////////////////////////////////////////////////
// CTrkRestoreNotify
STDMETHODIMP CTrkRestoreNotify::OnRestore()
{
HRESULT hr = E_FAIL;
CRpcClientBinding rc;
TrkLog(( TRKDBG_ADMIN, TEXT("CTrkRestoreNotify::OnRestore called") ));
rc.Initialize(_mcid);
RpcTryExcept
{
hr = LnkOnRestore(rc);
}
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
{
hr = HRESULT_FROM_WIN32(RpcExceptionCode());
}
RpcEndExcept;
Exit:
return MapTR2HR(hr);
}
void CTrkRestoreNotify::SetMachine(const CMachineId& mcid)
{
_mcid = mcid;
}