TCUtility.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /////////////////////////////////////////////////////////////////////////////
  2. // TCUtility.cpp | Implementation of the CTCUtility class.
  3. //
  4. #include "pch.h"
  5. #include "TCUtility.h"
  6. #include <..\TCLib\UtilImpl.h>
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CTCUtility
  9. TC_OBJECT_EXTERN_IMPL(CTCUtility)
  10. /////////////////////////////////////////////////////////////////////////////
  11. // ITCUtility Interface Methods
  12. STDMETHODIMP CTCUtility::CreateObject(BSTR bstrProgID, BSTR bstrComputer,
  13. IUnknown** ppUnk)
  14. {
  15. // Delegate to TCUtilImpl class method
  16. return TCUtilImpl::CreateObject(bstrProgID, bstrComputer, ppUnk);
  17. }
  18. STDMETHODIMP CTCUtility::ObjectReference(IUnknown* pUnk,
  19. BSTR* pbstrObjectReference)
  20. {
  21. // Delegate to TCUtilImpl class method
  22. return TCUtilImpl::ObjectReference(pUnk, pbstrObjectReference);
  23. }
  24. STDMETHODIMP CTCUtility::Sleep(long nDurationMS)
  25. {
  26. // Delegate to TCUtilImpl class method
  27. return TCUtilImpl::Sleep(nDurationMS);
  28. }
  29. STDMETHODIMP CTCUtility::GetObject(BSTR bstrMoniker, VARIANT_BOOL bAllowUI,
  30. long nTimeoutMS, IUnknown** ppUnk)
  31. {
  32. // Delegate to TCUtilImpl class method
  33. return TCUtilImpl::GetObject(bstrMoniker, bAllowUI, nTimeoutMS, ppUnk);
  34. }