Here the routines are implemented as functions that return an output array. Output results are here returned in the output array and are do therefore not appear in the routine argument list.
The conversion between the C enumeration types and Visual Basic integers is as follows.