Path: utzoo!attcan!uunet!microsoft!kensy From: kensy@microsoft.UUCP (Ken SYKES) Newsgroups: comp.windows.ms Subject: Re: EnumProfileStrings() , is there such? Message-ID: <57648@microsoft.UUCP> Date: 23 Sep 90 03:27:50 GMT References: <765@tuura.UUCP> Reply-To: kensy@microsoft.UUCP (Ken SYKES) Distribution: comp Organization: Microsoft Corp., Redmond WA Lines: 15 In article <765@tuura.UUCP> risto@tuura.UUCP (Risto Lankinen) writes: >Now, is there a way to 'Enumerate' either the section names in a particular >.INI file or the keywords under a particular section? Haven't found one, >except just reading the file and inspecting it on a line-by-line basis >(which I regard extremely inelegant). > You can enumerate the keys in a section by passing NULL for the keyname. What is returned in the buffer is a list of null-terminated strings. The end of the list is indicated by an empty string (just the null character) You won't be able to enumerate the section names without reading win.ini yourself. Ken Sykes Disclaimer: The above opinions are solely my own.