Depending on what exactly you were trying to accomplish, you may have gotten the same advice here. We have plenty of KiX ADSI COM code on this board.

Incidentally, the test code you show above using the WinNT:// provider is not user based. The function ENUMGROUPS only enumerates groups that have been attached to your security token at logon. This work is none by your Global Catalog server.


If you want the groups that your account is a member of, then I would suggest using reviewing some other threads such as: http://www.kixtart.org/ubbthreads/showthreaded.php?Cat=&Number=70104

where GetGroups code is posted.
_________________________
Home page: http://www.kixhelp.com/hb/