I am building a small application in C# that can create the user profile on Windows XP, Windows7 and Windows 8, using the Windows APIs
For Windows 7 and 8, the method CreateProfile
worked perfectly.
But, when trying to use the CreateUserProfileEx
on Windows XP, it didn't work, it returned me an error notifying that the method couldn't be find in the "UserEnv.dll", after reading a little bit more the API, I realized that I would need to use the LoadLibrary
and GetProcAddress
to link to Userenv.dll.
I searched for some sample related to this, but I couldn't find something that could give me a good idea or explanation how to do this.
if someone could put some sample in C# or point me where I could review about this, I would really appreciate it.