Need help with aaApi_CopyAccessControl

Hi!

I'm writing an vb.net application that calls the ProjectWise API and need to copy the access control list from a template folder to another folder within ProjectWise. I am getting an PInvokeStackImbalance error indicating that I don't have the calling Convention or the function signature correct.

Can someone verify that the help I'm using for that function has the right arguments and function return?

BOOL aaApi_CopyAccessControl ( ULONG  ulFlags,
LONG  lObjectTypeFrom,
LONG  lObjectId1From,
LONG  lObjectId2From,
LONG  lWorkflowIdFrom,
LONG  lStateIdFrom,
LONG  lObjectTypeTo,
LONG  lObjectId1To,
LONG  lObjectId2To  
)

Thank you!

~Leslie