Helper Functions to Manage Double-NUL-Terminated Strings

A double-NUL-terminated string is a data structure used in several places on the Win32 platform.

For example, the Windows registry can store double-NUL-terminated strings using the REG_MULTI_SZ type. As another example, the lpstrFilter of the Win32 OPENFILENAME structure points to a buffer containing double-NUL-terminated strings.

I’ve developed a couple of C++ helper functions to create and parse double-NUL-terminated strings: check them out here on GitHub!


One Reply to “Helper Functions to Manage Double-NUL-Terminated Strings”

Leave a Reply

Your email address will not be published. Required fields are marked *