Visual Basic invocation

(Supported on Windows only.)

mqCountItems Bag, Selector, ItemCount, CompCode, Reason

Declare the parameters as follows:

Dim Bag;      As Long 'Bag handle'
Dim Selector  As Long 'Selector'
Dim ItemCount As Long 'Number of items'
Dim CompCode  As Long 'Completion code'
Dim Reason    As Long 'Reason code qualifying CompCode'