@YawStar  I changed the data types in the dll call, and was able to get some test scripts to work without issue.  I have attached the updated UDF.  Please test to see if it works for you.   Permissions-Unicode.au3   Adam