KiXtart 4.21RC1 contains changes that permit the following code to now work.

Note that this code only works with the test version of Win32Admin2 (link below) . The purpose is to show a demo of how data will be returned in many of the functions when the next build of the DLL is released. I would like to hear what you think of data in this format (hash) vs. interleaved arrays.

DLL link: http://mywebpages.comcast.net/habullock/Win32Admin2.dll.txt

code:
break ON
$Win32Admin = createobject("Win32Admin2")
$Members = $Win32Admin.GrpEnumMembers(@wksta, "local", $Win32Admin.GetLocalAdminGrp())

for each $hash in $Members
for each $key in $hash.keys
? $key + " " + $hash.get($key)
next
next



[ 27. February 2003, 22:25: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/