13 #if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA)
14 #error "Single-threaded COM objects are not properly supported on Windows CE platform, such as the Windows Mobile platforms that do not include full DCOM support. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creating single-thread COM object's and allow use of it's single-threaded COM object implementations. The threading model in your rgs file was set to 'Free' as that is the only threading model supported in non DCOM Windows CE platforms."
23 public CComObjectRootEx<CComMultiThreadModel>,
24 public CComCoClass<Cblock, &CLSID_block>,
25 public ISupportErrorInfo,
26 public IConnectionPointContainerImpl<Cblock>,
28 public IDispatchImpl<Iblock, &IID_Iblock, &LIBID_instapiLib, 1, 0>
44 COM_INTERFACE_ENTRY(Iblock)
45 COM_INTERFACE_ENTRY(IDispatch)
46 COM_INTERFACE_ENTRY(ISupportErrorInfo)
47 COM_INTERFACE_ENTRY(IConnectionPointContainer)
50 BEGIN_CONNECTION_POINT_MAP(
Cblock)
51 CONNECTION_POINT_ENTRY(__uuidof(_IblockEvents))
52 END_CONNECTION_POINT_MAP()
54 STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
57 DECLARE_PROTECT_FINAL_CONSTRUCT()
59 HRESULT FinalConstruct()
69 STDMETHOD(get_setpoint)(VARIANT* pVal);
70 STDMETHOD(put_setpoint)(VARIANT newVal);
71 STDMETHOD(get_value)(VARIANT* pVal);
72 STDMETHOD(getLogValues)(BSTR start_time, BSTR end_time, BSTR output_time_format, VARIANT* times, VARIANT* values);
73 STDMETHOD(logValues)(BSTR time_format, VARIANT times, VARIANT values);
74 STDMETHOD(getSetpoint)(VARIANT* value, BSTR* time);
75 STDMETHOD(getValue)(VARIANT* value, BSTR* time);
76 STDMETHOD(get_name)(BSTR* pVal);
77 STDMETHOD(put_name)(BSTR pVal);
78 STDMETHOD(get_runcontrol)(VARIANT_BOOL* pVal);
79 STDMETHOD(put_runcontrol)(VARIANT_BOOL pVal);
80 STDMETHOD(get_lowlimit)(VARIANT* pVal);
81 STDMETHOD(put_lowlimit)(VARIANT pVal);
82 STDMETHOD(get_highlimit)(VARIANT* pVal);
83 STDMETHOD(put_highlimit)(VARIANT pVal);
84 STDMETHOD(enterSetpointOnly)(VARIANT newVal);
85 STDMETHOD(enterSetpointOnlyExt)(VARIANT newVal, VARIANT* results);
86 STDMETHOD(pushSetButton)();
87 STDMETHOD(pushSetButtonExt)(VARIANT* results);
88 STDMETHOD(setValue)(VARIANT newVal);
89 STDMETHOD(setValueExt)(VARIANT newVal, VARIANT* results);
92 OBJECT_ENTRY_AUTO(__uuidof(block),
Cblock)
unsigned long m_session_id
0 is an invalid session