Add the following attributes to the argv attribute when declaring a function in .net:
[In][MarshalAsAttribute(UnmanagedType.LPArray, ArraySubType=UnmanagedType.LPStr)]
You must also add the CharSet=CharSet.Unicode property to the CharSet=CharSet.Unicode attribute applied to the external function.
source share