On 07/01/2008, Alexandre Julliard <[EMAIL PROTECTED]> wrote: > "Dan Kegel" <[EMAIL PROTECTED]> writes: > > > Alexandre wrote: > >> I don't think a non null-terminated MULTI_SZ string is very useful. > >> Do you really have an app that depends on this? > > > > http://www.xpregistrycleaner.com/embedded-null-characters/ claims > > "some software vendors use the embedded-null registry key technique > > as a way to enforce the software license agreement and to reduce the > > ability of users to tamper with the license information stored in > > these registry keys." > > Embedded nulls should work just fine. The case that doesn't work is > string values that aren't properly null-terminated.
Is it possible to use a format like: Message="Hello" [using the quotes to determine the start/end of the string - this would require processing on the string data, though] or Message=(5)Hello [encoding the length in the stored data - this does not need any processing, and counts any nulls if there are any] - Reece