Could anyone explain to how to create a new user with a c++ program in windows 7 or 8, and set privileges to the same. Or if you could point me in the right direction.
I know that I could just do a bunch or system() calls but I am more interested in doing it manually so to say.
These are two pages that seem to be like what you are looking for. Don't know about the privileges bit (never done much of that), but following a few links around that site should help out a bit.