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:
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;