That's a good question. From an NT/2000 perspective, there are different "hives" of the registry stored in seperate .DAT files in different locations across the filesystem. In addition, the registry is encrypted so that simply opening the .DAT file in, say, Notepad renders it unintelligible.
Win9x stores the registry in a single .DAT file, but has a similar encrytption.
Brett