Here is the wrapper with little sample code. I took care of those specific things inside so the result looks quite easy to use.
I have made minor changes to DLL generation so that exported functions were easier to consume from .NET. Thus please
download the latest version of the library (64-bit DLL is also included with the wrapper).
The code I attach runs on x64 platform. If you need to run on x86 platform, then replace
iPiMocapAutomation.dll with 32-bit version. If you need your .NET code to run on AnyCPU platform then you should load the DLL of correct bitness manually before accessing the wrapper. Use the
LoadLibrary function from Windows API to load DLL.