Message Notification

Use function AioSetCntEvent to set which event factor causes a message notification.

Ret = AioSetCntEvent ( Id , CntChannel , hWnd , CntEvent )

Sets the channel number of counter in the CntChannel.
Specifies the event factor by macro or numeric value from the following range in the CntEvent.
CntEvent has the following meanings in bit, it can be specified by a combination of these bits.

Event factor

Macro

Value

Comparison count match event

CNTE_DATA_NUM

00000010H

Count overrun event

CNTE_ORERR

00010000H

Counter operation error

CNTE_ERR

00010001H

Comparison count match event (Macro: CNTE_DATA_NUM Value: 00000010H)
The event is generated when the counter comparison count match is established.

Count overrun event (Macro: CNTE_ORERR Value: 00010000H)
The event is generated when counter overrun occurs.

Counter operation error (Macro: CNTE_ERR Value: 00010001H)
This event is generated when the counter action stops by the counter operation error.

Specifies handle of Application Window in the hWnd. How to specify the handle depends on the application to be used. Please refer to the tutorial of the language used.

Visual Basic .NET
Visual C#
Visual C++ (MFC)