📄 opc_ae.h
字号:
virtual HRESULT TranslateToItemIDs (LPWSTR szSource, DWORD dwEventCategory, LPWSTR szConditionName, LPWSTR szSubconditionName, DWORD dwCount, DWORD* pdwAssocAttrIDs, LPWSTR** ppszAttrItemIDs, LPWSTR** ppszNodeNames, CLSID** ppCLSIDs) =0;virtual HRESULT GetConditionState (LPWSTR szSource, LPWSTR szConditionName, DWORD dwNumEventAttrs, DWORD* pdwAttributeIDs, OPCCONDITIONSTATE** ppConditionState) =0;virtual HRESULT EnableConditionByArea (DWORD dwNumAreas, LPWSTR* pszAreas) =0;virtual HRESULT EnableConditionBySource (DWORD dwNumSources, LPWSTR* pszSources) =0;virtual HRESULT DisableConditionByArea (DWORD dwNumAreas, LPWSTR* pszAreas) =0;virtual HRESULT DisableConditionBySource (DWORD dwNumSources, LPWSTR* pszSources) =0;virtual HRESULT AckCondition (DWORD dwCount, LPWSTR szAcknowledgerID, LPWSTR szComment, LPWSTR* pszSource, LPWSTR* pszConditionName, FILETIME* pftActiveTime, DWORD* pdwCookie, HRESULT** ppErrors) =0;virtual HRESULT CreateAreaBrowser (REFIID riid, LPUNKNOWN* ppUnk) =0;};#else/* C interface definition for IOPCEventServer */interface IOPCEventServer { const IOPCEventServerVtbl * lpVtbl; };#endif /* __cplusplus */EXTERN_C const IID IID_IOPCEventServer;typedef struct { COM_VTBL_BEGIN COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));#define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject) COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));#define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis)) COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));#define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis)) COM_VTBL_ENTRY (HRESULT, SetFilter, (IOPCEventSubscriptionMgt* pThis, DWORD dwEventType, DWORD dwNumCategories, DWORD* pdwEventCategories, DWORD dwLowSeverity, DWORD dwHighSeverity, DWORD dwNumAreas, LPWSTR* pszAreaList, DWORD dwNumSources, LPWSTR* pszSourceList));#define IOPCEventSubscriptionMgt_SetFilter(pThis, dwEventType, dwNumCategories, pdwEventCategories, dwLowSeverity, dwHighSeverity, dwNumAreas, pszAreaList, dwNumSources, pszSourceList) pThis->lpVtbl->SetFilter(COM_ADJUST_THIS(pThis), dwEventType, dwNumCategories, pdwEventCategories, dwLowSeverity, dwHighSeverity, dwNumAreas, pszAreaList, dwNumSources, pszSourceList) COM_VTBL_ENTRY (HRESULT, GetFilter, (IOPCEventSubscriptionMgt* pThis, DWORD* pdwEventType, DWORD* pdwNumCategories, DWORD** ppdwEventCategories, DWORD* pdwLowSeverity, DWORD* pdwHighSeverity, DWORD* pdwNumAreas, LPWSTR** ppszAreaList, DWORD* pdwNumSources, LPWSTR** ppszSourceList));#define IOPCEventSubscriptionMgt_GetFilter(pThis, pdwEventType, pdwNumCategories, ppdwEventCategories, pdwLowSeverity, pdwHighSeverity, pdwNumAreas, ppszAreaList, pdwNumSources, ppszSourceList) pThis->lpVtbl->GetFilter(COM_ADJUST_THIS(pThis), pdwEventType, pdwNumCategories, ppdwEventCategories, pdwLowSeverity, pdwHighSeverity, pdwNumAreas, ppszAreaList, pdwNumSources, ppszSourceList) COM_VTBL_ENTRY (HRESULT, SelectReturnedAttributes, (IOPCEventSubscriptionMgt* pThis, DWORD dwEventCategory, DWORD dwCount, DWORD* dwAttributeIDs));#define IOPCEventSubscriptionMgt_SelectReturnedAttributes(pThis, dwEventCategory, dwCount, dwAttributeIDs) pThis->lpVtbl->SelectReturnedAttributes(COM_ADJUST_THIS(pThis), dwEventCategory, dwCount, dwAttributeIDs) COM_VTBL_ENTRY (HRESULT, GetReturnedAttributes, (IOPCEventSubscriptionMgt* pThis, DWORD dwEventCategory, DWORD* pdwCount, DWORD** ppdwAttributeIDs));#define IOPCEventSubscriptionMgt_GetReturnedAttributes(pThis, dwEventCategory, pdwCount, ppdwAttributeIDs) pThis->lpVtbl->GetReturnedAttributes(COM_ADJUST_THIS(pThis), dwEventCategory, pdwCount, ppdwAttributeIDs) COM_VTBL_ENTRY (HRESULT, Refresh, (IOPCEventSubscriptionMgt* pThis, DWORD dwConnection));#define IOPCEventSubscriptionMgt_Refresh(pThis, dwConnection) pThis->lpVtbl->Refresh(COM_ADJUST_THIS(pThis), dwConnection) COM_VTBL_ENTRY (HRESULT, CancelRefresh, (IOPCEventSubscriptionMgt* pThis, DWORD dwConnection));#define IOPCEventSubscriptionMgt_CancelRefresh(pThis, dwConnection) pThis->lpVtbl->CancelRefresh(COM_ADJUST_THIS(pThis), dwConnection) COM_VTBL_ENTRY (HRESULT, GetState, (IOPCEventSubscriptionMgt* pThis, BOOL* pbActive, DWORD* pdwBufferTime, DWORD* pdwMaxSize, OPCHANDLE* phClientSubscription));#define IOPCEventSubscriptionMgt_GetState(pThis, pbActive, pdwBufferTime, pdwMaxSize, phClientSubscription) pThis->lpVtbl->GetState(COM_ADJUST_THIS(pThis), pbActive, pdwBufferTime, pdwMaxSize, phClientSubscription) COM_VTBL_ENTRY (HRESULT, SetState, (IOPCEventSubscriptionMgt* pThis, BOOL* pbActive, DWORD* pdwBufferTime, DWORD* pdwMaxSize, OPCHANDLE hClientSubscription, DWORD* pdwRevisedBufferTime, DWORD* pdwRevisedMaxSize));#define IOPCEventSubscriptionMgt_SetState(pThis, pbActive, pdwBufferTime, pdwMaxSize, hClientSubscription, pdwRevisedBufferTime, pdwRevisedMaxSize) pThis->lpVtbl->SetState(COM_ADJUST_THIS(pThis), pbActive, pdwBufferTime, pdwMaxSize, hClientSubscription, pdwRevisedBufferTime, pdwRevisedMaxSize) COM_VTBL_END } IOPCEventSubscriptionMgtVtbl;#ifdef __cplusplusinterface IOPCEventSubscriptionMgt : public IUnknown{virtual HRESULT SetFilter (DWORD dwEventType, DWORD dwNumCategories, DWORD* pdwEventCategories, DWORD dwLowSeverity, DWORD dwHighSeverity, DWORD dwNumAreas, LPWSTR* pszAreaList, DWORD dwNumSources, LPWSTR* pszSourceList) =0;virtual HRESULT GetFilter (DWORD* pdwEventType, DWORD* pdwNumCategories, DWORD** ppdwEventCategories, DWORD* pdwLowSeverity, DWORD* pdwHighSeverity, DWORD* pdwNumAreas, LPWSTR** ppszAreaList, DWORD* pdwNumSources, LPWSTR** ppszSourceList) =0;virtual HRESULT SelectReturnedAttributes (DWORD dwEventCategory, DWORD dwCount, DWORD* dwAttributeIDs) =0;virtual HRESULT GetReturnedAttributes (DWORD dwEventCategory, DWORD* pdwCount, DWORD** ppdwAttributeIDs) =0;virtual HRESULT Refresh (DWORD dwConnection) =0;virtual HRESULT CancelRefresh (DWORD dwConnection) =0;virtual HRESULT GetState (BOOL* pbActive, DWORD* pdwBufferTime, DWORD* pdwMaxSize, OPCHANDLE* phClientSubscription) =0;virtual HRESULT SetState (BOOL* pbActive, DWORD* pdwBufferTime, DWORD* pdwMaxSize, OPCHANDLE hClientSubscription, DWORD* pdwRevisedBufferTime, DWORD* pdwRevisedMaxSize) =0;};#else/* C interface definition for IOPCEventSubscriptionMgt */interface IOPCEventSubscriptionMgt { const IOPCEventSubscriptionMgtVtbl * lpVtbl; };#endif /* __cplusplus */EXTERN_C const IID IID_IOPCEventSubscriptionMgt;typedef struct { COM_VTBL_BEGIN COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));#define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject) COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));#define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis)) COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));#define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis)) COM_VTBL_ENTRY (HRESULT, ChangeBrowsePosition, (IOPCEventAreaBrowser* pThis, OPCAEBROWSEDIRECTION dwBrowseDirection, LPCWSTR szString));#define IOPCEventAreaBrowser_ChangeBrowsePosition(pThis, dwBrowseDirection, szString) pThis->lpVtbl->ChangeBrowsePosition(COM_ADJUST_THIS(pThis), dwBrowseDirection, szString) COM_VTBL_ENTRY (HRESULT, BrowseOPCAreas, (IOPCEventAreaBrowser* pThis, OPCAEBROWSETYPE dwBrowseFilterType, LPCWSTR szFilterCriteria, LPENUMSTRING* ppIEnumString));#define IOPCEventAreaBrowser_BrowseOPCAreas(pThis, dwBrowseFilterType, szFilterCriteria, ppIEnumString) pThis->lpVtbl->BrowseOPCAreas(COM_ADJUST_THIS(pThis), dwBrowseFilterType, szFilterCriteria, ppIEnumString) COM_VTBL_ENTRY (HRESULT, GetQualifiedAreaName, (IOPCEventAreaBrowser* pThis, LPCWSTR szAreaName, LPWSTR* pszQualifiedAreaName));#define IOPCEventAreaBrowser_GetQualifiedAreaName(pThis, szAreaName, pszQualifiedAreaName) pThis->lpVtbl->GetQualifiedAreaName(COM_ADJUST_THIS(pThis), szAreaName, pszQualifiedAreaName) COM_VTBL_ENTRY (HRESULT, GetQualifiedSourceName, (IOPCEventAreaBrowser* pThis, LPCWSTR szSourceName, LPWSTR* pszQualifiedSourceName));#define IOPCEventAreaBrowser_GetQualifiedSourceName(pThis, szSourceName, pszQualifiedSourceName) pThis->lpVtbl->GetQualifiedSourceName(COM_ADJUST_THIS(pThis), szSourceName, pszQualifiedSourceName) COM_VTBL_END } IOPCEventAreaBrowserVtbl;#ifdef __cplusplusinterface IOPCEventAreaBrowser : public IUnknown{virtual HRESULT ChangeBrowsePosition (OPCAEBROWSEDIRECTION dwBrowseDirection, LPCWSTR szString) =0;virtual HRESULT BrowseOPCAreas (OPCAEBROWSETYPE dwBrowseFilterType, LPCWSTR szFilterCriteria, LPENUMSTRING* ppIEnumString) =0;virtual HRESULT GetQualifiedAreaName (LPCWSTR szAreaName, LPWSTR* pszQualifiedAreaName) =0;virtual HRESULT GetQualifiedSourceName (LPCWSTR szSourceName, LPWSTR* pszQualifiedSourceName) =0;};#else/* C interface definition for IOPCEventAreaBrowser */interface IOPCEventAreaBrowser { const IOPCEventAreaBrowserVtbl * lpVtbl; };#endif /* __cplusplus */EXTERN_C const IID IID_IOPCEventAreaBrowser;typedef struct { COM_VTBL_BEGIN COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));#define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject) COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));#define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis)) COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));#define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis)) COM_VTBL_ENTRY (HRESULT, OnEvent, (IOPCEventSink* pThis, OPCHANDLE hClientSubscription, BOOL bRefresh, BOOL bLastRefresh, DWORD dwCount, ONEVENTSTRUCT* pEvents));#define IOPCEventSink_OnEvent(pThis, hClientSubscription, bRefresh, bLastRefresh, dwCount, pEvents) pThis->lpVtbl->OnEvent(COM_ADJUST_THIS(pThis), hClientSubscription, bRefresh, bLastRefresh, dwCount, pEvents) COM_VTBL_END } IOPCEventSinkVtbl;#ifdef __cplusplusinterface IOPCEventSink : public IUnknown{virtual HRESULT OnEvent (OPCHANDLE hClientSubscription, BOOL bRefresh, BOOL bLastRefresh, DWORD dwCount, ONEVENTSTRUCT* pEvents) =0;};#else/* C interface definition for IOPCEventSink */interface IOPCEventSink { const IOPCEventSinkVtbl * lpVtbl; };#endif /* __cplusplus */EXTERN_C const IID IID_IOPCEventSink;#ifdef __cplusplus}#endif#endif /* __INCopc_ae_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -