Hello,
Does someone own a snippet which tells that a certain memory area (bounded by a pointer & buffer_size) really holds a valid piece of ANSI or UTF-8 or UTF-16 text. If so I'm lucky no need to reinvent wheel this time. I'm sure that some types of app should make this kind of validation (at least are supposed to)...
Have a look at the "IsTextUnicode" function (include advapi32) - should be usable for what you want :U
Thanks, I will... :U