Yes, the code does use the newer Win32Admin for Sid lookup etc. You have not really specified what you intend to do. All manipulation of "primary group" I have seen to date would be done via admin script. Would using the DLL be undesirable?
_________________________
Home page: http://www.kixhelp.com/hb/