View Single Post
Old 8th April 2007, 20:00   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
When passing TRUSTEE_IS_SID, you must pass a real SID, not a string representation of the SID or a string representation of a pointer to it. Use `i R9` instead of `t R8`.

BTW, it crashes right away if the provided user name doesn't exist. A little error handling won't hurt

Also, $R5 should be freed using LocalFree as documented by MSDN and not by System::Free.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote