Hi,
I am trying to get the user account information using the function
LookupAccountName supplying it the user name. This API return the user SID if
the user exists.
Now, each SID has a user SID_NAME_USE which indicates the type of the user
e.g. SidTypeUser, SidTypeDomain, SidTypeComputer etc.
If I try this function for a normal user, it returns me the SID with correct
SID_NAME_USE as SidTypeUser.
However if I try this function for a computer account, this function returns
me the SID but with an incorrect SID_NAME_USE as SidTypeUser instead of the
expected SidTypeComputer.
Is it the expected behaviour? Am I missing something? Or should I use
another API which could give me correct user account type?
I would be highly grateful if anybody could help me in this regards.
Thanks,
Tushar