The information in this article applies to:
SUMMARY
The Iniheadr.exe sample defines a function called
GetPrivateProfileSections(), which parses a given .INI file and returns a
buffer containing the section headers separated by NULLs and terminated by
a double NULL. SECTION.C contains the function and a necessary helper
function. The sample allows the user to choose an .INI file using the Open
common dialog box. The section headings are then placed in a list box.
MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. A profile file (WIN.INI) or a private profile (such as CLOCK.INI) must have the following form:
For example, given a profile containing the following section headings
GetPrivateProfileSections() parses the profile file and places the
following in a buffer:
Additional query words:
Keywords : kbfile kbsample kb16bitonly kbSysSettings kbGrpUser kbWinOS310 kbWinOS311 kbWinOS300 |
Last Reviewed: December 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |