`*outASPathNames`
according to the Acrobat API is an array of pathnames. So for starters you need to use an array not an address of an ASPathName.
Secondly, you need to make sure you allocate this array memory or you will get thrown exceptions. 1 here is the size of the array.
*outASPathNames = (ASPathName*)ASmalloc(sizeof(ASPathName) * 1);
Then you can populate
**outASPathNames = asPathName