And you did copy the EnumINI UDF into your script somewhere?

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Board=7&Number=135385