Quote Originally Posted by arnelgp View Post
just add PtrSafe to each Function/Sub declaration.
That is absolutely not sufficient, and getting APIs wrong is not a good idea. Any handles/pointers also need to be converted to LongPtr.