A list of all profiles can be obtained with static kbStringList *ProfileBase::ListProfiles(int type = PT_Any), which will return a list of either all profiles or those having the specified type if it is not PT_Any.