Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Maximum length that a Windows Registry Key name can be?

I'm writing a very long registry Key name (it's a list of programs for a combined uninstall) and I think it's too big.

What's the max size the key can be (in characters) ? (The smallest maximum among Win xp, vista, 7 since it'll need to work on all of them)

like image 891
Clay Nichols Avatar asked Nov 24 '09 22:11

Clay Nichols


People also ask

What is the size of Windows registry?

By default, the registry size limit is 25 percent of the paged pool. (The default size of the paged pool is 32 MB, so this is 8 MB.)

What is a registry key name?

In the Windows 98, CE, NT, and 2000 operating systems, a registry key is an organizational unit in the Windows registry, an internal database the computer uses to store configuration information.

What is Reg_sz key in registry?

REG_SZ. A null-terminated string. This will be either a Unicode or an ANSI string, depending on whether you use the Unicode or ANSI functions.

What is registry value name?

Registry values are name/data pairs stored within keys. Registry values are referenced separately from registry keys. Each registry value stored in a registry key has a unique name whose letter case is not significant.


2 Answers

Key Name: 255 characters
Value name: 16,383 characters
Value: Available memory (latest format) or 1 MB (standard format)

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724872%28v=vs.85%29.aspx

like image 170
Ben Avatar answered Sep 19 '22 00:09

Ben


According to this support article, it is 255 characters.

like image 38
Brandon Avatar answered Sep 22 '22 00:09

Brandon