I am trying to retrieve a security identifier by calling the windows API function LookupAccountName (see attached source code).
The problem is that I keep getting the following error message when calling LookupAccountName:
HEAP[SID.exe]: Invalid allocation size - 99999998 (exceeded 7ffdefff)
I have been trying all kind of variations (including using loc() an not using loc()), but cannot find a solution.
I hope someone sees where I am going wrong.