ctapi

package
v0.0.0-...-c6702bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CT_LIST_EVENT = 0x00000001
View Source
const CT_LIST_LIGHTWEIGHT_MODE = 0x00000002
View Source
const CT_LIST_QUALITY_CONTROL_MODE = 0x0000000B
View Source
const CT_LIST_QUALITY_DATASOURCE_ERROR = 0x00000009
View Source
const CT_LIST_QUALITY_EXTENDED_SUBSTATUS = 0x00000008
View Source
const CT_LIST_QUALITY_GENERAL = 0x00000005
View Source
const CT_LIST_QUALITY_LIMIT = 0x00000007
View Source
const CT_LIST_QUALITY_OVERRIDE = 0x0000000A
View Source
const CT_LIST_QUALITY_SUBSTATUS = 0x00000006
View Source
const CT_LIST_QUALITY_TIMESTAMP = 0x00000004
View Source
const CT_LIST_TIMESTAMP = 0x00000002
View Source
const CT_LIST_VALUE = 0x00000001
View Source
const CT_LIST_VALUE_TIMESTAMP = 0x00000003
View Source
const CT_OPEN_BATCH = 0x08
View Source
const CT_OPEN_EXTENDED = 0x10
View Source
const CT_OPEN_READ_ONLY = 0x04
View Source
const CT_OPEN_RECONNECT = 0x02
View Source
const CT_OPEN_WINDOWSUSER = 0x20
View Source
const DBTYPE_ARRAY = 0x2000
View Source
const DBTYPE_BOOL = 11
View Source
const DBTYPE_BSTR = 8
View Source
const DBTYPE_BYREF = 0x4000
View Source
const DBTYPE_BYTES = 128
View Source
const DBTYPE_CY = 6
View Source
const DBTYPE_DATE = 7
View Source
const DBTYPE_DBDATE = 133
View Source
const DBTYPE_DBTIME = 134
View Source
const DBTYPE_DBTIMESTAMP = 135
View Source
const DBTYPE_DECIMAL = 14
View Source
const DBTYPE_EMPTY = 0
View Source
const DBTYPE_ERROR = 10
View Source
const DBTYPE_GUID = 72
View Source
const DBTYPE_I1 = 16
View Source
const DBTYPE_I2 = 2
View Source
const DBTYPE_I4 = 3
View Source
const DBTYPE_I8 = 20
View Source
const DBTYPE_IDISPATCH = 9
View Source
const DBTYPE_IUNKNOWN = 13
View Source
const DBTYPE_NULL = 1
View Source
const DBTYPE_NUMERIC = 131
View Source
const DBTYPE_R4 = 4
View Source
const DBTYPE_R8 = 5
View Source
const DBTYPE_RESERVED = 0x8000
View Source
const DBTYPE_STR = 129
View Source
const DBTYPE_UDT = 132
View Source
const DBTYPE_UI1 = 17
View Source
const DBTYPE_UI2 = 18
View Source
const DBTYPE_UI4 = 19
View Source
const DBTYPE_UI8 = 21
View Source
const DBTYPE_VARIANT = 12
View Source
const DBTYPE_VECTOR = 0x1000
View Source
const DBTYPE_WSTR = 130

Variables

This section is empty.

Functions

func StringToLPCTSTR

func StringToLPCTSTR(value string) uintptr

Types

type CtApi

type CtApi struct {
	// contains filtered or unexported fields
}

func Init

func Init(dllName string, dllPath string) (*CtApi, error)

func (*CtApi) CtClose

func (this *CtApi) CtClose(handle windows.Handle) (bool, error)

func (*CtApi) CtFindClose

func (this *CtApi) CtFindClose(h windows.Handle) error

func (*CtApi) CtFindFirst

func (this *CtApi) CtFindFirst(h windows.Handle, table string) (windows.Handle, windows.Handle, error)

func (*CtApi) CtFindNext

func (this *CtApi) CtFindNext(hSearch windows.Handle) (windows.Handle, error)

func (*CtApi) CtOpen

func (this *CtApi) CtOpen() (windows.Handle, error)

func (*CtApi) FindAll

func (this *CtApi) FindAll(h windows.Handle, table string) <-chan windows.Handle

func (*CtApi) GetPropertyAsString

func (this *CtApi) GetPropertyAsString(hTag windows.Handle, name string) (string, error)

func (*CtApi) NewList

func (this *CtApi) NewList(connection windows.Handle) (*CtList, error)

func (*CtApi) Subscribe

func (this *CtApi) Subscribe(hConnection windows.Handle, updateRate time.Duration, tags []string) (chan SubscriptionUpdate, error)

type CtList

type CtList struct {
	// contains filtered or unexported fields
}

func (*CtList) Add

func (this *CtList) Add(sTag string) (windows.Handle, error)

Add adds a tag to the list of tags being observed. Returns a handle that can be used to read the item or remove it from the list. Also returns an error code that is nil if there is no error

func (*CtList) Free

func (this *CtList) Free() error

Free releases a list back to CtApi. Returns nil on success, otherwise returns an error.

func (*CtList) GetFloatValue

func (this *CtList) GetFloatValue(hTag windows.Handle) (float32, error)

func (*CtList) Read

func (this *CtList) Read() error

type Subscription

type Subscription struct {
	// contains filtered or unexported fields
}

type SubscriptionUpdate

type SubscriptionUpdate struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL