Here is an article that explains the steps required to find the PST path - basically this is how the code you referenced works.
"An undefined problem has an infinite number of solutions." - Robert A. Humphrey
"If you're not part of the solution, you're part of the precipitate." - Henry J. Tillman
Comment on Re: Easy way to get the location of Outlook PSTs into my perl script?