The size passed back for a REG_SZ (or similar) is documented as including the space taken by the '\0' terminator. If the entry is an empty string it appears that Windows 2000 incorrectly returns 0 rather than 1.

--
Mike Crowe
I may not be speaking on behalf of empeg above :-)
_________________________
--
Mike Crowe