Информация об изменениях

Сообщение Re[2]: GetWindowTextLength максимальное значение ? от 17.04.2019 18:19

Изменено 17.04.2019 18:21 ononim

Re[2]: GetWindowTextLength максимальное значение ?
ntuser\client\usercli.h:
/*
 * Allow an initial maximum of 30000 characters in all edit controls since
 * some apps will run into unsigned problems otherwise.  If apps know about
 * the 64K limit, they can set the limit themselves.
 */
#define MAXTEXT         30000

....

ntuser\client\edecrare.c:

/**************************************************************************** ECCreate AorW
*
* History:
\***************************************************************************/

BOOL ECCreate(
    PED ped,
    LONG windowStyle)
{
....
ped->cchTextMax = MAXTEXT; /* Max # chars we will initially allow */
Re[2]: GetWindowTextLength максимальное значение ?
ограничение специфично к edit control:
ntuser\client\usercli.h:
/*
 * Allow an initial maximum of 30000 characters in all edit controls since
 * some apps will run into unsigned problems otherwise.  If apps know about
 * the 64K limit, they can set the limit themselves.
 */
#define MAXTEXT         30000

....

ntuser\client\edecrare.c:

/***************************************************************************\
* ECCreate AorW
*
* History:
\***************************************************************************/

BOOL ECCreate(
    PED ped,
    LONG windowStyle)
{
....
ped->cchTextMax = MAXTEXT; /* Max # chars we will initially allow */