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.

41 lines
789 B

  1. #include "pch.cxx"
  2. #pragma hdrstop
  3. #include <trklib.hxx>
  4. #include <trksvr.hxx>
  5. #include "stdafx.h"
  6. #include "ITrkAdmn.h"
  7. #include "Restore.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CTrkRestoreNotify
  10. STDMETHODIMP CTrkRestoreNotify::OnRestore()
  11. {
  12. HRESULT hr = E_FAIL;
  13. CRpcClientBinding rc;
  14. TrkLog(( TRKDBG_ADMIN, TEXT("CTrkRestoreNotify::OnRestore called") ));
  15. rc.Initialize(_mcid);
  16. RpcTryExcept
  17. {
  18. hr = LnkOnRestore(rc);
  19. }
  20. RpcExcept(EXCEPTION_EXECUTE_HANDLER)
  21. {
  22. hr = HRESULT_FROM_WIN32(RpcExceptionCode());
  23. }
  24. RpcEndExcept;
  25. Exit:
  26. return MapTR2HR(hr);
  27. }
  28. void CTrkRestoreNotify::SetMachine(const CMachineId& mcid)
  29. {
  30. _mcid = mcid;
  31. }