I already stated the function declaration in my previous post. Here's the structure declarations:

Private Type iotmodule_t
ucType As Byte
csName As String * 16
usTotalNoInputs As Integer
usNoAnalogeInputs As Integer
usNoDigitalInputs As Integer
usTotalNoOutputs As Integer
usNoAnalogeOutputs As Integer
usNoDigitalOutputs As Integer
End Type

Private Type iotlayout_t
usTotalNoInputs As Integer
usTotalNoOutputs As Integer
usNoIOmodules As Integer
IOmoduleInfo(MAX_NO_IO_MODULES) As iotmodule_t
End Type
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net