are there any limitations to writing a registry value name?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i am trying to write a test that would cause a method that writes a registry
value name to fail. can anyone tell me if there are any limitations to a
registry value name? length? types of characters? they had a test in place
that attempts to write a huge string (Hamlet's monalog) as a value name. it's
supposed to cause the method to fail but it actually writes the name to the
registry. any ideas?

thanks
 
Shawn said:
i am trying to write a test that would cause a method that writes a registry
value name to fail. can anyone tell me if there are any limitations to a
registry value name? length? types of characters? they had a test in place
that attempts to write a huge string (Hamlet's monalog) as a value name. it's
supposed to cause the method to fail but it actually writes the name to the
registry. any ideas?

There are limits in the registry:

http://msdn.microsoft.com/library/en-us/sysinfo/base/registry_element_size_limits.asp
 
Back
Top