twall/jna — pull request #74 by trejkaz (2012-05-14 02:44:42+00:00)
Title: Fixing Netapi32Util.getUserInfo(String, String)

Netapi32Utils.getUserInfo was ignoring the parameter for the domain name, which caused it to fail when the "domain" name of the local system was not actually a domain controller (which is the case for the majority of Windows systems ;))

On fixing that, I got an error about the SID being in an invalid format. It seems like JNA's "PSID" is actually just the SID, so to get PSID you have to use "PSID.ByReference". This is bound to confuse someone else in the future so it might be worth renaming PSID to SID?