From some posts, I learnt that we need to restore the priviliges of the thread before setting an owner.
I followed http://www.osronline.com/article.cfm^article=23.htm to restore the privileges. But I am seeing STATUS_ACCESS_VIOLATION for routine NtAdjustPrivilegesToken().
So my question is
- Is restoring the privileges is the solution to owner to security object?
2 ) If yes, how do I achieve that? Because I am seeing STATUS_ACCESS_VIOLATION for the routine NtAdjustPrivilegesToken()