I am trying to use the copymem function to get the ACE listing for a registry key. Once I get the pointer to the ACE, I call the Copymem routine and get a "Bad DLL Calling Convention" error message. If I remove the ByVal from the second parameter in the Copymem routine, the error goes away, but the string that should contain the trustee name is blank. Any one got any ideas?