Challenge Logic

Guys,
I have a challenge for the teacher and need some help to come up with logic.
What is a Windows environment with multiple users created by taking the User X all others need to be removed. Searching in Regedit seen that users are in:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\

Only in it for several inputs and the User name is in the variable:

ProfileImagePath

I will use this tutorial as a basis for working with the registry:

http://www.forum-invaders.com.br/vb/archive/index.php/t-6766.html

But I have no idea how to remove all users unless the user X, one would have any idea?
Run a search for "delete users WINAPI" on your Internet browser. I can't search in Portuguese, but I did find an English version of your question, and they give 2 common ways to do what you want;

http://stackoverflow.com/questions/213392/what-is-the-win32-api-function-to-use-to-delete-a-folder
Last edited on
Topic archived. No new replies allowed.