Unfortunately I am new to C programming, but I'll try to give you the complete picture of what happens.
There's no definition for HANDLE in the DLL documentation but windows.h is included, so I guess the following
#define HANDLE void * //32bit?
In my LV routine I tried U32 variables for the HANDLE typed parameters.
In one of attempt LV passes to the function a cluster (I make no mistake with the order!) with four arrays and four U32, all of them preset to some value. Well.. these values (all)are not changed when the function returns. The return value of the function says no error, anyway.
I tried other clusters: with and without arrays, with all (or part) scalars and all (or part) strings. No way either.
Sometimes LV itself crashes, sometimes I get
the original values I imposed before the call.
I suspect the LV cluster structure makes me miss the right level of indirection for the first 4 variables in the structure (called *s0, *region, *comment and *cnt): when either I pass arrays or scalars as components of the cluster.
Hope this helps you to help me
Cheers
Piero