Messy? It's just a small code excerpt showing the basic idea ;)
The typedef's define the required function pointer types for the functions we want to call.
If you are not familiar with function pointers, please see:
http://www.newty.de/fpt/fpt.html
Next we will use QLibrary to load the DLL that contains the functions, "shell32.dll" in this example.
Once the library is loaded, we resolve() the desired entry point (e.g. ""SHGetKnownFolderPath") and assign the result to our function pointer variable. If the result is non-NULL, i.e. the entry point was found, we call it...