EPDM API: Exception from HRESULT: 0x80070057

I was recently working on an app that used the SolidWorks EPDM API; specifically the app saves and restores folder permissions. While trying to set permissions, I was getting the error: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) After trying different methods of working with the EdmFolderPermission array, I noticed that I had ‘Embed…