It would be nice if the Windows APIs were properly covered in Delphi.
Marco Cantù – It seems that you missed this little handy function.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa376399(v=vs.85).aspx
I rant, therefore I am.
It would be nice if the Windows APIs were properly covered in Delphi.
Marco Cantù – It seems that you missed this little handy function.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa376399(v=vs.85).aspx
The JEDI API Library includes Delphi wrappers for this:
http://sourceforge.net/projects/jedi-apilib/
For ConvertSidToStringSid() (from advapi32.dll) see Win32APIJwaSddl.pas (line 319/409 impl)
Also see Win32APIJwaNative.pas (line 7069) which makes available the similar RtlConvertSidToUnicodeString() from ntdll.dll
Also missing: GetModuleHandleEx. It’s just not there. (JEDI headers to the rescue!)