I humbly request enlightenment on the issue of obtaining the current UserSID in perl on Windows. Searches in the googolsphere have been entertaining but ultimately fruitless -- can any kind monks give me help?
(The need is to access the registry from a process running under msiexec --an install-- when the "current user" is not the logged-in user because the process is running with system privilege. By reading from HKU\UserSID I can reach the right data.
The Windows API function LookupAccountName returns a SID structure, but somehow I can't find the CPAN digest which reportedly implements that.)