How to pass hierarchical path as string

In reply to dave_59:
Is there any way to access hierarchy in DPI-C?