The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: ramguru on March 20, 2007, 04:17:26 PM

Title: looking for is_this_dump_a_piece_of_text(buf,size) routine
Post by: ramguru on March 20, 2007, 04:17:26 PM
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)...
Title: Re: looking for is_this_dump_a_piece_of_text(buf,size) routine
Post by: Tedd on March 20, 2007, 05:52:12 PM
Have a look at the "IsTextUnicode" function (include advapi32) - should be usable for what you want :U
Title: Re: looking for is_this_dump_a_piece_of_text(buf,size) routine
Post by: ramguru on March 20, 2007, 05:55:56 PM
Thanks, I will...  :U