Getting the full path for an Item selected through IVsHierachy
See the question and my original answer on StackOverflowIt ultimately depends on the type of hierarchy (not all items supports a "full path" concept), but for most hierarchy, this method should get back what you need:
IVsHierarchy.GetCanonicalName(uint itemid, out string pbstrName);