GetFeatures for Part

I am a little confused on something I have been reading, trying to learn about APIs.

Does anyone have some basic code to show me how to use IFeatureManager::GetFeatures

with a For/Next Loop for a part?

SolidworksApi macros