Page 1 of 1

EnumeratePreferencesGroup()

Posted: Sat Jan 14, 2006 3:22 pm
by Trond
Suggestion/wish: A command to get all the groups (one at at a time) of an opened preferences file.

Posted: Sat Jan 14, 2006 6:19 pm
by bingo
"emulator" :lol:

Code: Select all

secbuffer.s = Space(1000)
seclen = GetPrivateProfileSectionNames_(@secbuffer,1000,"c:\windows\inf\agp.inf");syntax inf = syntax ini

tmp.s
i.l
While seclen > i
tmp = PeekS(@secbuffer+i)
Debug tmp
i=i+Len(tmp)+1
Wend