I have a shell program that needs to know usernames and their passwords in order to grant permissions for launching other programs. (for use with XP, NT, 2000 and domains)
a) Password compare: In this requirement I have, there is no need to know the password itself, but rather I need a function that compares whatever the user inputs in my program, which sends it somewhere (to a SAM or domain) . In other words, what my program needs is an answer ( Yes or No) when I say "is this the current user password".
a) Need to know (and launch, if applicable) the function or windows program (or applet?) that manages (add, delete, modify) users to the local computer or the domain, assuming that the current logged person has the rights to do it. Something like the "right click on my computer->manage->local users and groups" console.
b) I need to add users to my program by choosing them selectively from the current users list, without going to the user administration programs. Like a "peek list" of valid user names. Something like the user select in the folder security dialogs, where you have "check names" also.
c) Need a function that queries the windows user database and respond Yes or No to the question "is JULIO a valid user in this machine" (where "JULIO" is a placeholder for the string I actually will query". Of course it would be ok if I have extra information in a simple manner, like the groups that this user belongs to, without having to spend time on complicated C++ like structures.