Total size of a key, size of a value name, and size of a value are three
different things.
For example:
Registry\Machine\System\CurrentControlSet\Services is a key
ImagePath is a value name.
%SystemRoot%\xxx is a value.
Bill Wandel
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of Ray Trent
Sent: Tuesday, April 07, 2009 8:04 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Registry size limits in XP and Vista
On a related note, does anyone know what the last line of the following
statement means when it refers to the total size of all values in a key?
It seems to contradict other statements in other Microsoft documentation
about value sizes being limited only by memory:
From: http://support.microsoft.com/kb/256986
The following table lists the data types that are currently defined and that
are used by Windows. The maximum size of a value name is as follows:
* Windows Server 2003, Windows XP, and Windows Vista: 16,383 characters
* Windows 2000: 260 ANSI characters or 16,383 Unicode characters
* Windows Millennium Edition/Windows 98/Windows 95: 255 characters
Long values (more than 2,048 bytes) must be stored as files with the file
names stored in the registry. This helps the registry perform efficiently.
The maximum size of a value is as follows:
* Windows NT 4.0/Windows 2000/Windows XP/Windows Server 2003/Windows
Vista: Available memory
* Windows Millennium Edition/Windows 98/Windows 95: 16,300 bytes
Note There is a 64K limit for the total size of all values of a key.
xxxxx@yahoo.com wrote:
> We have an app that stores lots of data under the System branch,
sometimes it fails with >STATUS_INSUFFICIENT_RESOURCES.
Which call is failing ?
You may already know this but Microsoft advises against having lot of data
in registry. Probably time to find a new place to store stuff ?
Satya
http://www.winprogger.com
–
Ray
(If you want to reply to me off list, please remove “spamblock.” from my
email address)
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer