Use LsaEnumerateAccountsWithUserRight and LsaEnumerateAccountRights
I am not aware of managed wrapper classes for these functions. You need to
use pinvoke or C++ Interop.
reference
http://support.microsoft.com/kb/132958
--
Sheng Jiang
Microsoft MVP in VC++
<ye**************@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
Hey ,,
I wanted to List user rights assignment programmatically using c#..
the function should list the privilege and the user it has been
granted to. I think it can be done using PInvoke . Is there another
way?. if not can someone give me a hint as to how to proceed.
thanks