Well after posting this message, again with a little more digging, I realized that I was making the issue more complex than necessary:
Byte * stuff = (BYTE*)pwzSensitive; hr = StrMaxLength(pwzSensitive, &stuffSize); ExitOnFailure(hr, "Failed to set the buffer size."); -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/C-CA-using-Wca-and-StrUtil-for-secure-data-tp7600677p7600678.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users