@wolf71 In this case you need to pass both arguments using byref. The first argument (buffer) is a pointer-to-pointer-to-char, and aabuf is a pointer-to-char, so you need to use byref to make it a pointer-to-pointer. Same with the next one - len needs to be a pointer-to-long, and aalen is a long, so you need to put it through byref to make it a pointer.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.