RegOpenKeyEx fails while opening a certain key with error 1332 "No
mapping between account names and security IDs was done."
Would someone please explain what this means?
Thanks,
++PLS
The LookupAccountSid function accepts a security identifier (SID) as
input. It retrieves the name of the account for this SID and the name
of the first domain on which this SID is found.
The LookupAccountSid function attempts to find a name for the
specified SID by first checking a list of well-known SIDs. If the
supplied SID does not correspond to a well-known SID, the function
checks built-in and administratively defined local accounts. Next,
the function checks the primary domain. Security identifiers not
recognized by the primary domain are checked against the trusted
domains corresponding to their SID prefixes.
LookupAccountSid fails and GetLastError returns ERROR_NONE_MAPPED if
it cannot find an account name for the SID. This can occur if a
network time-out prevents the function from finding the
name. It also occurs for SIDs that have no corresponding account
name, such as a
logon SID that identifies a logon session.
What may be happening is that this error is bubbling up through
RegOpenKeyEx.
-Eric
This posting is provided "AS IS" with no warranties, and confers no
rights. You assume all risk for your use. ©2001 Microsoft
Corporation. All rights reserved. If this disclaimer causes painful
itching or swelling, immediately discontinue use.