I am writing an application that searches for a particular file in the C:\Documents and Settings\user accounts\Application Data folder. Now i am trying to make this application generic. I can make this application search in a particular users application data folder. But what i am tryin to do is take the user name from a certain file or place where windows xp stores it. Then make it search for that user. Is there a particular way to do it.

Need ideas and suggestions.