9 out of 19 rated this helpful - Rate this topic

Registry Element Size Limits

The following table identifies the size limits for the various registry elements.

Registry ElementSize Limit
Key name255 characters
Value name16,383 characters
Windows 2000:  260 ANSI characters or 16,383 Unicode characters.
ValueAvailable memory (latest format)

1 MB (standard format)

TreeA registry tree can be 512 levels deep. You can create up to 32 levels at a time through a single registry API call.

 

Long values (more than 2,048 bytes) should be stored in a file, and the location of the file should be stored in the registry. This helps the registry perform efficiently.

The file location can be the name of a value or the data of a value. Each backslash in the location string must be preceded by another backslash as an escape character. For example, specify "C:\\mydir\\myfile" to store the string "C:\mydir\myfile". A file location can also be the name of a key if it is within the 255-character limit for key names and does not contain backslashes, which are not allowed in key names.

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Log Name: Microsoft-Windows-Diagnostics-Performance/Operational Source: Microsoft-Window
 Name:      Microsoft-Windows-Diagnostics-Performance/Operational
Source:        Microsoft-Windows-Diagnostics-Performance
Date:          16/8/2554 8:46:54
Event ID:      303
Task Category: Standby Performance Monitoring
Level:         Warning
Keywords:      Event Log
User:          LOCAL SERVICE
Computer:      522-PC
Description:
This service caused a delay during hybrid-sleep:
     File Name        :    SDRSVC
     Friendly Name        :    Microsoft® Windows Backup Service
     Version        :    6.1.7600.16385 (win7_rtm.090713-1255)
     Total Time        :    1641ms
     Degradation Time    :    641ms
     Incident Time (UTC)    :    ‎2554‎-‎08‎-‎16T01:46:04.595145000Z
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Diagnostics-Performance" Guid="{CFC18EC0-96B1-4EBA-961B-622CAEE05B0A}" />
    <EventID>303</EventID>
    <Version>1</Version>
    <Level>3</Level>
    <Task>4003</Task>
    <Opcode>35</Opcode>
    <Keywords>0x8000000000010000</Keywords>
    <TimeCreated SystemTime="2011-08-16T01:46:54.254811800Z" />
    <EventRecordID>262</EventRecordID>
    <Correlation ActivityID="{00000000-18C4-0000-7168-5494AC5BCC01}" />
    <Execution ProcessID="1484" ThreadID="4984" />
    <Channel>Microsoft-Windows-Diagnostics-Performance/Operational</Channel>
    <Computer>522-PC</Computer>
    <Security UserID="S-1-5-19" />
  </System>
  <EventData>
    <Data Name="StartTime">2011-08-16T01:46:04.595145000Z</Data>
    <Data Name="NameLength">7</Data>
    <Data Name="Name">SDRSVC</Data>
    <Data Name="FriendlyNameLength">34</Data>
    <Data Name="FriendlyName">Microsoft® Windows Backup Service</Data>
    <Data Name="VersionLength">38</Data>
    <Data Name="Version">6.1.7600.16385 (win7_rtm.090713-1255)</Data>
    <Data Name="TotalTime">1641</Data>
    <Data Name="DegradationTime">641</Data>
    <Data Name="PathLength">31</Data>
    <Data Name="Path">C:\Windows\System32\SDRSVC.dll</Data>
    <Data Name="ProductNameLength">37</Data>
    <Data Name="ProductName">Microsoft® Windows® Operating System</Data>
    <Data Name="CompanyNameLength">22</Data>
    <Data Name="CompanyName">Microsoft Corporation</Data>
  </EventData>
</Event>
Regedit does not display value names longer than 255 characters
Regedit.exe does not display value names longer than 255 characters, so if you use Regedit to confirm creation of a value it may appear that creation has failed. Check the return value of RegSetValueEx for ERROR_SUCCESS to confirm successful creation of a value, and use the reg.exe command-line tool to view value names of any length. http://technet.microsoft.com/en-us/library/cc732643(WS.10).aspx
이밴트뷰어는 검색
안녕하세요? 몇년동안에 프로그램에 이모든 항상 오류발생하므로 다시 이벤트 뷰어는 검색해야합니다 내회원권한 정책보호하기 위해 계정및리그인 없습니다.이것은 스시템.로켈.웹사이트.소프웨어.하이웨어.봅륨.등이 이모든 검색합니다.중요사업:windows7.windows vista32.offle2003부터2008.2008r.2010까지 64.86에 조정으로 검색하여 주십시오
Size of registry key "class"?

Although there seems to be no default classes for registry keys defined now, what is the maximum size of the registry key class?

256 characters + terminating 0 as for a window class?