c++ - What is LogonUser()'s token returned used for? -
What can you do with token returns? And what is used for it?
BOOL logon user (__in LPTSTR lpsz username, __in_opt LPTSTR lpszDomain, __in LPTSTR lpsz password, __in DWORD dwLogonType, __in DWORD dwLogonProvider, __out scan token);
I have tokens and it requires a more general discription of how it works and the use of the real world.
Thanks, -Pet
As MSDN says: "In most cases , The recalled headlock is a primary token, which you can use the CreateProcessAsUser function in the call. There is no reason to believe.
Sample: You can write your own runas.exe
. Call the logon user
with the username and password from the command line and then call CreateProcessAsUser
to start the program with the selected credentials.
Comments
Post a Comment