looking for is_this_dump_a_piece_of_text(buf,size) routine

Started by ramguru, March 20, 2007, 04:17:26 PM

Previous topic - Next topic

ramguru

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)...

Tedd

Have a look at the "IsTextUnicode" function (include advapi32) - should be usable for what you want :U
No snowflake in an avalanche feels responsible.