LsaEnumerateAccountRights
-
can any body give me an example code for how to use the function LsaEnumerateAccountRights() ..
vineesh
I've just looked on MSDN for the command, and it looks fairly cleanly documented. http://msdn.microsoft.com/en-us/library/ms721790(VS.85).aspx[^] You pass it a couple of bits of information, it returns information which you tidy up with LsAFreeMemory. The hard bits would be generating the SID value, and the Policy object. But if you click on the link, it gives you a nice big example on how to get it. The below link goes to a page called "Translating between Names and SIDs", taken from the contents of the left of the MSDN site. http://msdn.microsoft.com/en-us/library/ms722463(VS.85).aspx[^] I hoped that helped you on your way, Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.