Starting with Windows 2000:

The maximum number of Unicode characters in a Key is 255.

The maximum number of Unicode characters in a Value Name is 16,383.

NOTE: I hope to never see a Value Name that exceeds 64 characters!