How to use API to get table information?

Hello,everyone.

I want use SW API to get table information.

The code I fined was:

GetTableAnnotations

But ,how do i use it.? Because I need get General table and hole table information.

SolidworksApi/macros