It works:
GSErrCode ACAPI_ElementGroup_GetGroup (
API_Guid const& elemGuid
API_Guid* groupGuid
);
Instead elemGuid have to substitute the guid of the current group, then the function returns the guid of the group, the next level up.
It is obvious that function was conceived for this aim)).
Thank you!)