Initialization File Structure

Divisions within the INI file are known as sections and are demarcated by bracketed strings called section names. Any number of keys can be stored within each section. A key is simply a named configuration setting that can be set or queried programmatically. A key assignment consists of the key name (or tag), the equal sign, and the key value, which is the value returned by the system for the key. You can have only one key assignment per line. Comments are denoted by a semicolon. You cannot place comments on section name lines. A sample section of an INI file may look like the following:

 [PREFERENCES] COLOR = BLUE ; This is a comment. SHAPE = CIRCLE ; A comment may be on a line by itself as well. LETTERS="a;b;c;d" ...

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.