TEXTLEN

OllyDbg Plugin API

TEXTLEN

Constant that determines maximal possible length of names, text strings and messages in OllyDbg. As a general rule, if function returns string and does not contain its maximal length as an input parameter, the size of string buffer must be at least TEXTLEN characters (or 2*TEXTLEN bytes for UNICODE strings). File names are an exception, they are always MAXPATH bytes long. All other exceptions from this rule are clearly documented here.

#define TEXTLEN 256 // Maximal length of text string