You cannot build an array of known folder ids and paths as there is no assurance the paths will be the same in every system. There are default paths for known folders but they are just defaults, they can be changed. Many corporate environments do this to, for example, move the user's documents folder to a network share that can be backed up more easily.
In any case a link in the link you provided contains all the information you need:
SHGetKnownFolderPath is the Win API function that returns the path of the known folder. Note that you need to release the unicode char pointer returned yourself by calling CoTaskMemFree.
If you preffer working with a COM object, you can use IKNOWNFOLDER instead.