lavitz
asked on
GetTokenInformation returns same sid for different computers
Hi,
Iam using
LogonUser(
L"user1", // usr name
L"x", // domain
L"xxx", // pass
LOGON32_LOGON_NEW_CREDENTI ALS,
LOGON32_PROVIDER_DEFAULT,
&handle
);
and
GetTokenInformation(
handle, // handle to the access token
TokenGroupsAndPrivileges, // get information about the token's groups
(LPVOID) ptg, // pointer to TOKEN_GROUPS buffer
dwLength, // size of buffer
&dwLength // receives required buffer size
))
It returns same sid if i change user, pass and domain.
Iam using
LogonUser(
L"user1", // usr name
L"x", // domain
L"xxx", // pass
LOGON32_LOGON_NEW_CREDENTI
LOGON32_PROVIDER_DEFAULT,
&handle
);
and
GetTokenInformation(
handle, // handle to the access token
TokenGroupsAndPrivileges, // get information about the token's groups
(LPVOID) ptg, // pointer to TOKEN_GROUPS buffer
dwLength, // size of buffer
&dwLength // receives required buffer size
))
It returns same sid if i change user, pass and domain.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.