NetUserGetLocalGroups in Windows Server 2003
In my programs, I need to enumerate all the groups that the current user belongs to. Previously, on Windows NT, I can use NetUserGetLocalGroups w/o any problem. However, since we migrated to Windows Server 2003, my code could not enumerate indirect groups even if I specified LG_INCLUDE_INDIRECT. For example:
User A is a member of group G1; and G1 is added into G2. NetUserGetLocalGroups only returns G1 in Windows Server 2003. (As opposed to in Windows NT, this function returns G1 and G2).
Can someone please tell me how to make this work? Or, maybe a new API to do similar jobs.
Thanks,
--H.Pham
[635 byte] By [
hpham] at [2007-11-18 20:32:51]
