Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How big is a plugin's parameter buffer?

May
12,834
163
If I have
Code:
INT WINAPI f_PLUGIN( LPWSTR psz )
how many WCHARs can I put in psz?
 
32K bytes. That hasn't changed since plugins were introduced.
I'm playing with the MAPM API and running into a 16K limit somewhere. This is OK ...
Code:
v:\> echo %@fact[5015] | wc
  Lines   Words   Chars
      1       1   16384
And the next one (5016) makes TCC disappear. f_FACT finishes off like this, where psz in the plugin's parameter buffer.
Code:
       m_apm_factorial(f, n);
       CHAR *szResult = (CHAR*) AllocMem(32768);
       m_apm_to_integer_string(szResult, f);
       ASCIIToUnicode(szResult, psz, 32767);
       FreeMem(szResult);
 
32K bytes. That hasn't changed since plugins were introduced.
Did you increase this? Today I can write 32K WCHARs to it.
Code:
v:\> echo %@ipow[10 32765] | wc
  Lines   Words   Chars
      1       1   32768
 

Similar threads

Back
Top