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.

66 lines
1.8 KiB

  1. // TestSE.h : Declaration of the CTestSE
  2. #ifndef __TESTSE_H_
  3. #define __TESTSE_H_
  4. #include <SvcResource.h>
  5. //
  6. // From HelpServiceTypeLib.idl
  7. //
  8. #include <HelpServiceTypeLib.h>
  9. #include "testwrapper.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CTestSE
  12. class ATL_NO_VTABLE CTestSE :
  13. public MPC::Thread<CTestSE,ITestSE>,
  14. public CComObjectRootEx<MPC::CComSafeMultiThreadModel>,
  15. public CComCoClass<CTestSE, &CLSID_TestSE>,
  16. public IDispatchImpl<IPCHSEWrapperItem, &IID_IPCHSEWrapperItem, &LIBID_HelpServiceTypeLib>,
  17. public IDispatchImpl<IPCHSEWrapperInternal, &IID_IPCHSEWrapperInternal, &LIBID_HelpServiceTypeLib>
  18. {
  19. DECLARE_WRAPPER_VARIABLES;
  20. public:
  21. CTestSE();
  22. DECLARE_REGISTRY_RESOURCEID(IDR_TESTSE)
  23. DECLARE_PROTECT_FINAL_CONSTRUCT()
  24. BEGIN_COM_MAP(CTestSE)
  25. COM_INTERFACE_ENTRY2(IDispatch,IPCHSEWrapperItem)
  26. COM_INTERFACE_ENTRY(IPCHSEWrapperItem)
  27. COM_INTERFACE_ENTRY(IPCHSEWrapperInternal)
  28. END_COM_MAP()
  29. // ITestSE
  30. public:
  31. DECLARE_WRAPPER_PARAM_FUNCTIONS_BEGIN;
  32. DECLARE_WRAPPER_PARAM( PARAM_UINT, // Type
  33. CComBSTR("NumResults"), // Name
  34. CComBSTR("NumResults"), // Description
  35. VARIANT_FALSE, // Required
  36. CComVariant(CComBSTR("")), // Data
  37. VARIANT_TRUE); // Visible
  38. DECLARE_WRAPPER_PARAM( PARAM_UINT, // Type
  39. CComBSTR("QueryDelayMillisec"), // Name
  40. CComBSTR("QueryDelayMillisec"), // Description
  41. VARIANT_FALSE, // Required
  42. CComVariant(CComBSTR("")), // Data
  43. VARIANT_TRUE); // Visible
  44. DECLARE_WRAPPER_PARAM_FUNCTIONS_END;
  45. DECLARE_WRAPPER_EXPORT_INTERFACE;
  46. DECLARE_WRAPPER_NON_EXPORT_INTERFACE;
  47. // non-exported functions
  48. HRESULT ExecQuery();
  49. };
  50. #endif //__TESTSE_H_