DI2K_GetMode

 

This function code is used to get the mode of a specific D/I channel.

 

C/C++

int DI2K_GetMode( int hConnection,

BYTE bytChannel,

WORD * wMode);

 

Visual Basic

Declare Function DI2K_GetMode Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, iMode As Integer) As Long

 

Arguments:

hConnection

The handle for an I/O device's connection.

bytChannel

The specific channel to be get.

wMode

A pointer that stores a specific D/I channel's mode. The values are:

0: D/I Mode

1: Count Mode

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.