Get replication history programmatically

Does anyone know how to read the replication history log programmatically? I know you can clear the history and manipulate the cutoff date and purge settings via the API, but I can’t seem to find a way to read it.

Subject: Get replication history programmatically

NSFDbGetReplHistorySummary reads it. This is easily found from the Index view of the C API Reference.