Structure of An INF File
The structure of an INF file is very similar to that of an INI file; it contains various sections that specify the files to be copied, changes to the registry, etc. All INF files contain a section with a Signature value specifying the version of Windows that the INF file is meant for. The signature is commonly
$CHICAGO$
(for Windows 9x) or $WINDOWS NT$
(for Windows NT/2K/XP) Most of the remaining sections are user-defined and contain information specific to the component being installed. An example of a INF file might have something like this:
- open=program.exe
What this would do is open the program.exe file automatically whenever the media containing the file (in its root directory) is connected to the computer. This can be dangerous, as there is no way to tell whether such a file exists before inserting the media. Since Windows XP, however, this feature has been replaced with a menu forcing the user to choose which action to take.
INF Files can sometimes be dangerous on Windows 2000 as they may allow viruses to autorun without prompting.
- open=program.exe
- icon=cd.ico
'icon=*.ico' command replaces any old/default drive icon with the specified one. can be replaced by or .
Read more about this topic: INF File
Famous quotes containing the words structure of, structure and/or file:
“... the structure of our public morality crashed to earth. Above its grave a tombstone read, Be toleranteven of evil. Logically the next step would be to say to our commonwealths criminals, I disagree that its all right to rob and murder, but naturally I respect your opinion. Tolerance is only complacence when it makes no distinction between right and wrong.”
—Sarah Patton Boyle, U.S. civil rights activist and author. The Desegregated Heart, part 2, ch. 2 (1962)
“A special feature of the structure of our book is the monstrous but perfectly organic part that eavesdropping plays in it.”
—Vladimir Nabokov (18991977)
“I have been a soreheaded occupant of a file drawer labeled Science Fiction ... and I would like out, particularly since so many serious critics regularly mistake the drawer for a urinal.”
—Kurt Vonnegut, Jr. (b. 1922)