RegCreateKey, RegSetValue, RegQueryValue, etc.Quote:> Are there any functions available for C++ that will allow reading and
> writing to the NT registry?
If you're looking for encapsulation, you might want to look at Sammy
Blackburn's WFC. His registry class is at:
The Universe is a figment of its own imagination.
> RegCreateKey, RegSetValue, RegQueryValue, etc.
> If you're looking for encapsulation, you might want to look at Sammy
> Blackburn's WFC. His registry class is at:
> The Universe is a figment of its own imagination.
Take these 3 concepts and then look at the implementation/performance:
( 3 Concepts for reading/writing with harddisks )
Seek, Read, Read, Read, Read, Read, Etc
Seek, Write, Write, Write, Write, Write, Etc
Seek, Read, Write, Read, Write, Read, Write,
Results: SLOW ???
The pseudo code is like:
Seek( 0 ); // offset 0
For I:=0 to FileBlocks-1 do // number of 4KB blocks in file.
if Random(2) = 0 then
Read( 4 KB )
Write( 4 KB );
The original concept is:
Do a seek once.
Then read or write a block of data. The head is automatically forwarded to
the next block. So no extra seek is needed.
For concept 1 and concept 2 this works just fine and gives good performance.
However concept 3 has very bad performance.
Is this a software issue ? ( Windows XP )
Is this a hardware issue ? ( Harddisk Read Head and Harddisk Write Head
can't work together like this and an extra seek is needed ? )
Or some sort of driver issue ? ( Harddisk driver / firmware issue ? )