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.

45 lines
1.1 KiB

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