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.

46 lines
1.2 KiB

  1. // Copyright (c) Microsoft Corporation
  2. // CSingleThreadedDual.h : Declaration of the CSingleThreadedDual
  3. #ifndef CSINGLETHREADEDDUAL_H_
  4. #define CSINGLETHREADEDDUAL_H_
  5. #pragma once
  6. #include "resource.h" // main symbols
  7. #include "sxstest_idl.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CSingleThreadedDual
  10. class ATL_NO_VTABLE CSingleThreadedDual :
  11. public CComObjectRootEx<CComSingleThreadModel>,
  12. public CComCoClass<CSingleThreadedDual, &CLSID_CSxsTest_SingleThreadedDual>,
  13. public IDispatchImpl<ISxsTest_SingleThreadedDual, &IID_ISxsTest_SingleThreadedDual>
  14. {
  15. public:
  16. CSingleThreadedDual()
  17. {
  18. PrintComctl32Path("CSingleThreadedDual");
  19. }
  20. STDMETHOD(OutputDebugStringA)(const char * s)
  21. {
  22. ::OutputDebugStringA(s);
  23. return NOERROR;
  24. }
  25. DECLARE_REGISTRY_RESOURCEID(IDR_CSINGLETHREADED_DUAL)
  26. DECLARE_AGGREGATABLE(CSingleThreadedDual)
  27. DECLARE_GET_CONTROLLING_UNKNOWN()
  28. DECLARE_PROTECT_FINAL_CONSTRUCT()
  29. BEGIN_COM_MAP(CSingleThreadedDual)
  30. COM_INTERFACE_ENTRY(ISxsTest_SingleThreadedDual)
  31. COM_INTERFACE_ENTRY(IDispatch)
  32. END_COM_MAP()
  33. // ICSingleThreadedDual
  34. public:
  35. };
  36. #endif // CSINGLETHREADED_H_