Max length of registry entry?

  • Thread starter Thread starter Lisa
  • Start date Start date
L

Lisa

Hi,

I'm using the OpenNetCF registry lib. and noticed the the max entry length
of a registry value in code is 255. I thought I had read somewhere that reg
entries could be a max length of 2K. I would like to write a string that may
be larger than 255 but less than 2K.

Can anyone verify what the real limit to a reg value is?

Thanks
 
The maximum size allowed for a *value* by Windows CE is 4k. If it's a
Unicode string, then, 2k characters. Are you sure you want a registry key
that long?

Paul T.
 
Back
Top