Basically, when i use vb.net or c#.net to do this, it works perfectly, but when i use vb6, it doesn\'t work, in my for loop where the relevant service in the relevant device is
The documentation you linked says xins and xouts should be an empty array on calling: you could try changing the definition to
Dim xins() As Variant Dim xouts() As Variant
If that doesn't work you could even try
Dim xins As Variant Dim xouts As Variant