Okay, I'm not going to debug your app for you 'cos you need to learn how to do it yourself, but I can help you learn:

Look at the MSDN help for LoadUserProfile. What does it say about the lpProfileInfo parameter?

What are you passing in?