The following table identifies the size limits for the various registry elements.
| Registry Element | Size Limit |
| Key name | 255 characters |
| Value name | 16,383 charactersWindows 2000: 260 ANSI characters or 16,383 Unicode characters.
|
| Value | Available memory (latest format) 1 MB (standard format)
|
| Tree | A 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 as files with the file names stored in the registry. This helps the registry perform efficiently.
Send comments about this topic to Microsoft
Build date: 10/8/2009