Modifying "Permanently delete documents after" database property via the C API

I have some old (2001) notes message databases with items in the trash. I currently have a tool that uses the C API to copy messages from one .nsf to another. These trash messages are not available, however, because they are set to delete 48 hours after being moved to the trash. As soon as I access the database, the trash messages are no longer available. If I back-date my computer to the year 2000, I can set the “Permanently delete documents after” database property to a large value (87600 = 10 years), and then access the trash messages after resetting the time to current. Is there a way to do this programmatic-ly? LotusScript has the property “UndeleteExpireTime”, but there is a bug in that the data type of the parameter is “integer” while the actual database property field is “long”.