Documentation
¶
Index ¶
- Variables
- type ConditionState
- type EventServerStatus
- type IOPCEventAreaBrowser
- func (v *IOPCEventAreaBrowser) BrowseOPCAreas(browseFilterType uint32, filterCriteria string) (areas []string, err error)
- func (v *IOPCEventAreaBrowser) ChangeBrowsePosition(browseDirection uint32, str string) (err error)
- func (v *IOPCEventAreaBrowser) GetQualifiedAreaName(areaName string) (qualifiedAreaName string, err error)
- func (v *IOPCEventAreaBrowser) GetQualifiedSourceName(SourceName string) (qualifiedSourceName string, err error)
- func (v *IOPCEventAreaBrowser) VTable() *IOPCEventAreaBrowserVtbl
- type IOPCEventAreaBrowserVtbl
- type IOPCEventServer
- func (v *IOPCEventServer) AckCondition(acknowledgerID, comment string, sources, conditionNames []string, ...) (errors []int32, err error)
- func (v *IOPCEventServer) CreateAreaBrowser(riid *windows.GUID) (unknown *com.IUnknown, err error)
- func (v *IOPCEventServer) CreateEventSubscription(active bool, bufferTime, maxSize uint32, clientSubscriptionHandle uint32, ...) (unknown *com.IUnknown, revisedBufferTime, revisedMaxSize uint32, err error)
- func (v *IOPCEventServer) DisableConditionByArea(areas []string) (err error)
- func (v *IOPCEventServer) DisableConditionBySource(sources []string) (err error)
- func (v *IOPCEventServer) EnableConditionByArea(areas []string) (err error)
- func (v *IOPCEventServer) EnableConditionBySource(sources []string) (err error)
- func (v *IOPCEventServer) GetConditionState(source, conditionName string, attributeIDs []uint32) (conditionState *ConditionState, err error)
- func (v *IOPCEventServer) GetStatus() (*EventServerStatus, error)
- func (v *IOPCEventServer) QueryAvailableFilters() (filterMask uint32, err error)
- func (v *IOPCEventServer) QueryConditionNames(eventCategory uint32) (conditionNames []string, err error)
- func (v *IOPCEventServer) QueryEventAttributes(eventCategory uint32) (attrIDs []uint32, attrDescs []string, attrTypes []uint16, err error)
- func (v *IOPCEventServer) QueryEventCategories(eventType uint32) (eventCategories []uint32, eventCategoryDescs []string, err error)
- func (v *IOPCEventServer) QuerySourceConditions(source string) (conditionNames []string, err error)
- func (v *IOPCEventServer) QuerySubConditionNames(conditionName string) (subConditionNames []string, err error)
- func (v *IOPCEventServer) TranslateToItemIDs(source string, eventCategory uint32, conditionName, subconditionName string, ...) (attrItemIDs, nodeNames []string, clsIDs []windows.GUID, err error)
- func (v *IOPCEventServer) Vtbl() *IOPCEventServerVtbl
- type IOPCEventServerVtbl
- type IOPCEventSubscriptionMgt
- func (v *IOPCEventSubscriptionMgt) CancelRefresh(connection uint32) (err error)
- func (v *IOPCEventSubscriptionMgt) GetFilter() (eventType uint32, eventCategories []uint32, lowSeverity uint32, ...)
- func (v *IOPCEventSubscriptionMgt) GetReturnedAttributes(eventCategory uint32) (attributeIDs []uint32, err error)
- func (v *IOPCEventSubscriptionMgt) GetState() (active bool, bufferTime uint32, maxSize uint32, clientSubscription uint32, ...)
- func (v *IOPCEventSubscriptionMgt) Refresh(connection uint32) (err error)
- func (v *IOPCEventSubscriptionMgt) SelectReturnedAttributes(eventCategory uint32, attributeIDs []uint32) (err error)
- func (v *IOPCEventSubscriptionMgt) SetFilter(eventType uint32, eventCategories []uint32, lowSeverity uint32, ...) (err error)
- func (v *IOPCEventSubscriptionMgt) SetState(active *int32, bufferTime *uint32, maxSize *uint32, clientSubscription uint32) (revisedBufferTime uint32, revisedMaxSize uint32, err error)
- func (v *IOPCEventSubscriptionMgt) VTable() *IOPCEventSubscriptionMgtVtbl
- type IOPCEventSubscriptionMgtVtbl
- type OPCCONDITIONSTATE
- type OPCEVENTSERVERSTATUS
Constants ¶
This section is empty.
Variables ¶
var IID_IOPCEventAreaBrowser = windows.GUID{ Data1: 0x65168857, Data2: 0x5783, Data3: 0x11D1, Data4: [8]byte{0x84, 0xA0, 0x00, 0x60, 0x8C, 0xB8, 0xA7, 0xE9}, }
MIDL_DEFINE_GUID(IID, IID_IOPCEventAreaBrowser,0x65168857,0x5783,0x11D1,0x84,0xA0,0x00,0x60,0x8C,0xB8,0xA7,0xE9);
var IID_IOPCEventServer = windows.GUID{ Data1: 0x65168851, Data2: 0x5783, Data3: 0x11D1, Data4: [8]byte{0x84, 0xA0, 0x00, 0x60, 0x8C, 0xB8, 0xA7, 0xE9}, }
65168851-5783-11D1-84A0-00608CB8A7E9
var IID_IOPCEventSubscriptionMgt = windows.GUID{ Data1: 0x65168855, Data2: 0x5783, Data3: 0x11D1, Data4: [8]byte{0x84, 0xA0, 0x00, 0x60, 0x8C, 0xB8, 0xA7, 0xE9}, }
IID_IOPCEventSubscriptionMgt 65168855-5783-11D1-84A0-00608CB8A7E9
Functions ¶
This section is empty.
Types ¶
type ConditionState ¶
type ConditionState struct { State uint16 Reserved1 uint16 ActiveSubCondition string ASCDefinition string ASCSeverity uint32 ASCDescription string Quality uint16 Reserved2 uint16 LastAckTime time.Time SubCondLastActive time.Time CondLastActive time.Time CondLastInactive time.Time AcknowledgerID string Comment string NumSCs uint32 SCNames []string SCDefinitions []string SCSeverities []uint32 SCDescriptions []string NumEventAttrs uint32 EventAttributes []com.VARIANT Errors []int32 }
type EventServerStatus ¶
type IOPCEventAreaBrowser ¶
func (*IOPCEventAreaBrowser) BrowseOPCAreas ¶
func (v *IOPCEventAreaBrowser) BrowseOPCAreas(browseFilterType uint32, filterCriteria string) (areas []string, err error)
virtual HRESULT STDMETHODCALLTYPE BrowseOPCAreas( /* [in] */ OPCAEBROWSETYPE dwBrowseFilterType, /* [string][in] */ LPCWSTR szFilterCriteria, /* [out] */ LPENUMSTRING *ppIEnumString) = 0;
func (*IOPCEventAreaBrowser) ChangeBrowsePosition ¶
func (v *IOPCEventAreaBrowser) ChangeBrowsePosition(browseDirection uint32, str string) (err error)
virtual HRESULT STDMETHODCALLTYPE ChangeBrowsePosition( /* [in] */ OPCAEBROWSEDIRECTION dwBrowseDirection, /* [string][in] */ LPCWSTR szString) = 0;
func (*IOPCEventAreaBrowser) GetQualifiedAreaName ¶
func (v *IOPCEventAreaBrowser) GetQualifiedAreaName(areaName string) (qualifiedAreaName string, err error)
func (*IOPCEventAreaBrowser) GetQualifiedSourceName ¶
func (v *IOPCEventAreaBrowser) GetQualifiedSourceName(SourceName string) (qualifiedSourceName string, err error)
virtual HRESULT STDMETHODCALLTYPE GetQualifiedSourceName( /* [in] */ LPCWSTR szSourceName, /* [string][out] */ LPWSTR *pszQualifiedSourceName) = 0;
func (*IOPCEventAreaBrowser) VTable ¶
func (v *IOPCEventAreaBrowser) VTable() *IOPCEventAreaBrowserVtbl
type IOPCEventServer ¶
func (*IOPCEventServer) AckCondition ¶
func (v *IOPCEventServer) AckCondition(acknowledgerID, comment string, sources, conditionNames []string, activeTimes []time.Time, cookies []uint32) (errors []int32, err error)
virtual HRESULT STDMETHODCALLTYPE AckCondition( /* [in] */ DWORD dwCount, /* [string][in] */ LPWSTR szAcknowledgerID, /* [string][in] */ LPWSTR szComment, /* [size_is][in] */ LPWSTR *pszSource, /* [size_is][in] */ LPWSTR *pszConditionName, /* [size_is][in] */ FILETIME *pftActiveTime, /* [size_is][in] */ DWORD *pdwCookie, /* [size_is][size_is][out] */ HRESULT **ppErrors) = 0;
func (*IOPCEventServer) CreateAreaBrowser ¶
virtual HRESULT STDMETHODCALLTYPE CreateAreaBrowser( /* [in] */ REFIID riid, /* [iid_is][out] */ LPUNKNOWN *ppUnk) = 0;
func (*IOPCEventServer) CreateEventSubscription ¶
func (v *IOPCEventServer) CreateEventSubscription(active bool, bufferTime, maxSize uint32, clientSubscriptionHandle uint32, riid *windows.GUID) (unknown *com.IUnknown, revisedBufferTime, revisedMaxSize uint32, err error)
HRESULT ( STDMETHODCALLTYPE *CreateEventSubscription )( IOPCEventServer2 * This, /* [in] */ BOOL bActive, /* [in] */ DWORD dwBufferTime, /* [in] */ DWORD dwMaxSize, /* [in] */ OPCHANDLE hClientSubscription, /* [in] */ REFIID riid, /* [iid_is][out] */ LPUNKNOWN *ppUnk, /* [out] */ DWORD *pdwRevisedBufferTime, /* [out] */ DWORD *pdwRevisedMaxSize);
func (*IOPCEventServer) DisableConditionByArea ¶
func (v *IOPCEventServer) DisableConditionByArea(areas []string) (err error)
virtual HRESULT STDMETHODCALLTYPE DisableConditionByArea( /* [in] */ DWORD dwNumAreas, /* [size_is][in] */ LPWSTR *pszAreas) = 0;
func (*IOPCEventServer) DisableConditionBySource ¶
func (v *IOPCEventServer) DisableConditionBySource(sources []string) (err error)
virtual HRESULT STDMETHODCALLTYPE DisableConditionBySource( /* [in] */ DWORD dwNumSources, /* [size_is][in] */ LPWSTR *pszSources) = 0;
func (*IOPCEventServer) EnableConditionByArea ¶
func (v *IOPCEventServer) EnableConditionByArea(areas []string) (err error)
virtual HRESULT STDMETHODCALLTYPE EnableConditionByArea( /* [in] */ DWORD dwNumAreas, /* [size_is][in] */ LPWSTR *pszAreas) = 0;
func (*IOPCEventServer) EnableConditionBySource ¶
func (v *IOPCEventServer) EnableConditionBySource(sources []string) (err error)
virtual HRESULT STDMETHODCALLTYPE EnableConditionBySource( /* [in] */ DWORD dwNumSources, /* [size_is][in] */ LPWSTR *pszSources) = 0;
func (*IOPCEventServer) GetConditionState ¶
func (v *IOPCEventServer) GetConditionState(source, conditionName string, attributeIDs []uint32) (conditionState *ConditionState, err error)
virtual HRESULT STDMETHODCALLTYPE GetConditionState( /* [in] */ LPWSTR szSource, /* [in] */ LPWSTR szConditionName, /* [in] */ DWORD dwNumEventAttrs, /* [size_is][in] */ DWORD *pdwAttributeIDs, /* [out] */ OPCCONDITIONSTATE **ppConditionState) = 0;
func (*IOPCEventServer) GetStatus ¶
func (v *IOPCEventServer) GetStatus() (*EventServerStatus, error)
func (*IOPCEventServer) QueryAvailableFilters ¶
func (v *IOPCEventServer) QueryAvailableFilters() (filterMask uint32, err error)
func (*IOPCEventServer) QueryConditionNames ¶
func (v *IOPCEventServer) QueryConditionNames(eventCategory uint32) (conditionNames []string, err error)
func (*IOPCEventServer) QueryEventAttributes ¶
func (v *IOPCEventServer) QueryEventAttributes(eventCategory uint32) (attrIDs []uint32, attrDescs []string, attrTypes []uint16, err error)
virtual HRESULT STDMETHODCALLTYPE QueryEventAttributes( /* [in] */ DWORD dwEventCategory, /* [out] */ DWORD *pdwCount, /* [size_is][size_is][out] */ DWORD **ppdwAttrIDs, /* [size_is][size_is][out] */ LPWSTR **ppszAttrDescs, /* [size_is][size_is][out] */ VARTYPE **ppvtAttrTypes) = 0;
func (*IOPCEventServer) QueryEventCategories ¶
func (v *IOPCEventServer) QueryEventCategories(eventType uint32) (eventCategories []uint32, eventCategoryDescs []string, err error)
func (*IOPCEventServer) QuerySourceConditions ¶
func (v *IOPCEventServer) QuerySourceConditions(source string) (conditionNames []string, err error)
func (*IOPCEventServer) QuerySubConditionNames ¶
func (v *IOPCEventServer) QuerySubConditionNames(conditionName string) (subConditionNames []string, err error)
func (*IOPCEventServer) TranslateToItemIDs ¶
func (v *IOPCEventServer) TranslateToItemIDs(source string, eventCategory uint32, conditionName, subconditionName string, assocAttrIDs []uint32) (attrItemIDs, nodeNames []string, clsIDs []windows.GUID, err error)
virtual HRESULT STDMETHODCALLTYPE TranslateToItemIDs( /* [in] */ LPWSTR szSource, /* [in] */ DWORD dwEventCategory, /* [in] */ LPWSTR szConditionName, /* [in] */ LPWSTR szSubconditionName, /* [in] */ DWORD dwCount, /* [size_is][in] */ DWORD *pdwAssocAttrIDs, /* [size_is][size_is][out] */ LPWSTR **ppszAttrItemIDs, /* [size_is][size_is][out] */ LPWSTR **ppszNodeNames, /* [size_is][size_is][out] */ CLSID **ppCLSIDs) = 0;
func (*IOPCEventServer) Vtbl ¶
func (v *IOPCEventServer) Vtbl() *IOPCEventServerVtbl
type IOPCEventServerVtbl ¶
type IOPCEventServerVtbl struct { com.IUnknownVtbl GetStatus uintptr CreateEventSubscription uintptr QueryAvailableFilters uintptr QueryEventCategories uintptr QueryConditionNames uintptr QuerySubConditionNames uintptr QuerySourceConditions uintptr QueryEventAttributes uintptr TranslateToItemIDs uintptr GetConditionState uintptr EnableConditionByArea uintptr EnableConditionBySource uintptr DisableConditionByArea uintptr DisableConditionBySource uintptr AckCondition uintptr CreateAreaBrowser uintptr }
type IOPCEventSubscriptionMgt ¶
func (*IOPCEventSubscriptionMgt) CancelRefresh ¶
func (v *IOPCEventSubscriptionMgt) CancelRefresh(connection uint32) (err error)
virtual HRESULT STDMETHODCALLTYPE CancelRefresh(
/* [in] */ DWORD dwConnection) = 0;
func (*IOPCEventSubscriptionMgt) GetFilter ¶
func (v *IOPCEventSubscriptionMgt) GetFilter() (eventType uint32, eventCategories []uint32, lowSeverity uint32, highSeverity uint32, areaList []string, sourceList []string, err error)
virtual HRESULT STDMETHODCALLTYPE GetFilter(
/* [out] */ DWORD *pdwEventType, /* [out] */ DWORD *pdwNumCategories, /* [size_is][size_is][out] */ DWORD **ppdwEventCategories, /* [out] */ DWORD *pdwLowSeverity, /* [out] */ DWORD *pdwHighSeverity, /* [out] */ DWORD *pdwNumAreas, /* [size_is][size_is][out] */ LPWSTR **ppszAreaList, /* [out] */ DWORD *pdwNumSources, /* [size_is][size_is][out] */ LPWSTR **ppszSourceList) = 0;
func (*IOPCEventSubscriptionMgt) GetReturnedAttributes ¶
func (v *IOPCEventSubscriptionMgt) GetReturnedAttributes(eventCategory uint32) (attributeIDs []uint32, err error)
virtual HRESULT STDMETHODCALLTYPE GetReturnedAttributes( /* [in] */ DWORD dwEventCategory, /* [out] */ DWORD *pdwCount, /* [size_is][size_is][out] */ DWORD **ppdwAttributeIDs) = 0;
func (*IOPCEventSubscriptionMgt) GetState ¶
func (v *IOPCEventSubscriptionMgt) GetState() (active bool, bufferTime uint32, maxSize uint32, clientSubscription uint32, err error)
virtual HRESULT STDMETHODCALLTYPE GetState( /* [out] */ BOOL *pbActive, /* [out] */ DWORD *pdwBufferTime, /* [out] */ DWORD *pdwMaxSize, /* [out] */ OPCHANDLE *phClientSubscription) = 0;
func (*IOPCEventSubscriptionMgt) Refresh ¶
func (v *IOPCEventSubscriptionMgt) Refresh(connection uint32) (err error)
virtual HRESULT STDMETHODCALLTYPE Refresh(
/* [in] */ DWORD dwConnection) = 0;
func (*IOPCEventSubscriptionMgt) SelectReturnedAttributes ¶
func (v *IOPCEventSubscriptionMgt) SelectReturnedAttributes(eventCategory uint32, attributeIDs []uint32) (err error)
virtual HRESULT STDMETHODCALLTYPE SelectReturnedAttributes( /* [in] */ DWORD dwEventCategory, /* [in] */ DWORD dwCount, /* [size_is][in] */ DWORD *dwAttributeIDs) = 0;
func (*IOPCEventSubscriptionMgt) SetFilter ¶
func (v *IOPCEventSubscriptionMgt) SetFilter(eventType uint32, eventCategories []uint32, lowSeverity uint32, highSeverity uint32, areaList []string, sourceList []string) (err error)
virtual HRESULT STDMETHODCALLTYPE SetFilter( /* [in] */ DWORD dwEventType, /* [in] */ DWORD dwNumCategories, /* [size_is][in] */ DWORD *pdwEventCategories, /* [in] */ DWORD dwLowSeverity, /* [in] */ DWORD dwHighSeverity, /* [in] */ DWORD dwNumAreas, /* [size_is][in] */ LPWSTR *pszAreaList, /* [in] */ DWORD dwNumSources, /* [size_is][in] */ LPWSTR *pszSourceList) = 0;
func (*IOPCEventSubscriptionMgt) SetState ¶
func (v *IOPCEventSubscriptionMgt) SetState(active *int32, bufferTime *uint32, maxSize *uint32, clientSubscription uint32) (revisedBufferTime uint32, revisedMaxSize uint32, err error)
virtual HRESULT STDMETHODCALLTYPE SetState( /* [in]unique */ BOOL *pbActive, /* [in]unique */ DWORD *pdwBufferTime, /* [in]unique */ DWORD *pdwMaxSize, /* [in] */ OPCHANDLE hClientSubscription, /* [out] */ DWORD *pdwRevisedBufferTime, /* [out] */ DWORD *pdwRevisedMaxSize) = 0;
func (*IOPCEventSubscriptionMgt) VTable ¶
func (v *IOPCEventSubscriptionMgt) VTable() *IOPCEventSubscriptionMgtVtbl
type OPCCONDITIONSTATE ¶
type OPCCONDITIONSTATE struct { WState uint16 WReserved1 uint16 SzActiveSubCondition *uint16 SzASCDefinition *uint16 DwASCSeverity uint32 SzASCDescription *uint16 WQuality uint16 WReserved2 uint16 FtLastAckTime windows.Filetime FtSubCondLastActive windows.Filetime FtCondLastActive windows.Filetime FtCondLastInactive windows.Filetime SzAcknowledgerID *uint16 SzComment *uint16 DwNumSCs uint32 PszSCNames unsafe.Pointer PszSCDefinitions unsafe.Pointer PdwSCSeverities unsafe.Pointer PszSCDescriptions unsafe.Pointer DwNumEventAttrs uint32 PEventAttributes unsafe.Pointer PErrors unsafe.Pointer }
typedef /* [public][public] */ struct __MIDL___MIDL_itf_opc_ae_0262_0006
{ WORD wState; WORD wReserved1; LPWSTR szActiveSubCondition; LPWSTR szASCDefinition; DWORD dwASCSeverity; LPWSTR szASCDescription; WORD wQuality; WORD wReserved2; FILETIME ftLastAckTime; FILETIME ftSubCondLastActive; FILETIME ftCondLastActive; FILETIME ftCondLastInactive; LPWSTR szAcknowledgerID; LPWSTR szComment; DWORD dwNumSCs; /* [size_is] */ LPWSTR *pszSCNames; /* [size_is] */ LPWSTR *pszSCDefinitions; /* [size_is] */ DWORD *pdwSCSeverities; /* [size_is] */ LPWSTR *pszSCDescriptions; DWORD dwNumEventAttrs; /* [size_is] */ VARIANT *pEventAttributes; /* [size_is] */ HRESULT *pErrors; } OPCCONDITIONSTATE;