The core problem here is that VBScript (the underlying engine) does not
support byte arrays.
I don't have a solution for you, but here is a related trick to get a
long from a byte array, using the newObjects SFMain object. It also
deals with the big endian/little endian problem, which you
From the TechNote 26 description it appears that API calls can be made passing
parameters as in ByRef X As Byte() with no problem. However due to VBScript
limitations what you pass in (and get back) are arrays of Integer (or short
i.e. VT_I2, signed 16-bit integers).
The issue I have is that