For example, you might extract a PST file that contains seven subfiles with a root node enabled. The call to ExtractGetMainFileInfo() returns the number of subfiles as 8 (seven subfiles and one root node). The following diagram shows the structure and the available hierarchy information after the subfiles are extracted:

Extracted PST file

The ParentIndex specifies the index number of a subfile’s parent. The ChildArray specifies an array of a subfile’s children. With this information, you can recreate the hierarchy shown in the following diagram.

Recreated file hierarchy