Thank you appnair.
The code compiled and the static utility methods proved useful.
To followup:
The first four elements in the RIGHTID list are:
LAPI_DOCUMENTS.RIGHT_WORLD,
LAPI_DOCUMENTS.RIGHT_SYSTEM,
LAPI_DOCUMENTS.RIGHT_OWNER,
LAPI_DOCUMENTS.RIGHT_GROUP
or
-1,-2,-3,-4
I assume -3 is...